zold 0.10.9 → 0.10.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -0
- data/lib/zold/commands/node.rb +1 -0
- data/lib/zold/node/front.rb +3 -0
- data/lib/zold/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1a0df814aaa040edb72486cce4b9512ef380baa
|
4
|
+
data.tar.gz: c1596a6c12527583ed59d1fa9ec864afb1beb5de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fb149dbfbecb7ee537148ced5272b364ca54ecde594261893c9a54018d7e5c4e44895bd88e41f9b0c244d6162c0f6d6c01c04f8c30059f7cd3094bfd5997c42
|
7
|
+
data.tar.gz: 4195273f638acafef7f21bed1c9e4b35da9d9556c97686ffb66ecc93ef9dcf4bccedd2fbaa6e0d651186b1981c9972414a3953b265116b036bde8f121a43c8ee
|
data/README.md
CHANGED
@@ -19,6 +19,8 @@ submit your ideas and/or pull requests.
|
|
19
19
|
|
20
20
|
Here is the [White Paper](https://github.com/yegor256/zold/raw/master/wp/wp.pdf).
|
21
21
|
|
22
|
+
Join our [Telegram group](https://t.me/zold_io) to discuss it all live.
|
23
|
+
|
22
24
|
The license is [MIT](https://github.com/yegor256/zold/blob/master/LICENSE.txt).
|
23
25
|
|
24
26
|
## How to Use
|
@@ -54,6 +56,12 @@ $ zold create
|
|
54
56
|
5f96e731e48ae21f
|
55
57
|
```
|
56
58
|
|
59
|
+
Then, push it to the network:
|
60
|
+
|
61
|
+
```bash
|
62
|
+
$ zold push 5f96e731e48ae21f
|
63
|
+
```
|
64
|
+
|
57
65
|
Then, give this ID to your friend, who is going to pay you.
|
58
66
|
When the payment is sent, ask him or her for the ID of the wallet
|
59
67
|
the payment has been sent from and then fetch that wallet
|
@@ -103,6 +111,30 @@ $ nohup bash -c 'while CMD; do gem install zold; done' &
|
|
103
111
|
Grateful users of the system will pay "taxes" to your wallet
|
104
112
|
for the maintenance of their wallets.
|
105
113
|
|
114
|
+
## Frequently Asked Questions
|
115
|
+
|
116
|
+
> Where are my PGP private/public keys?
|
117
|
+
|
118
|
+
They are in `~/.ssh/id_rsa` (private key) and `~/.ssh/id_rsa.pub` (public key).
|
119
|
+
Make sure you have a copy of your private key in some safe place.
|
120
|
+
If you lose the public key, it's not a problem, since your wallet has it.
|
121
|
+
But the private key is your personal asset.
|
122
|
+
Anyone can use your wallet if they have the private key.
|
123
|
+
Keep it safe and secure!
|
124
|
+
|
125
|
+
> What is the best way to check the balance of the rewards collected by nodes?
|
126
|
+
|
127
|
+
You just do `zold pull <Wallet_ID>` and the rewards (taxes) will be visible there.
|
128
|
+
|
129
|
+
> Can I setup multiple nodes with one wallet address?
|
130
|
+
|
131
|
+
Yes, you can run many nodes with the same wallet ID.
|
132
|
+
|
133
|
+
> Is there a way to increase the number of threads in order to maximize computing power of multiple core machines?
|
134
|
+
|
135
|
+
Yes, you can use `--threads` command line argument for your node
|
136
|
+
and the number of threads will be as big as you wish.
|
137
|
+
|
106
138
|
## How to Contribute
|
107
139
|
|
108
140
|
It is a Ruby command line gem. First, install
|
data/lib/zold/commands/node.rb
CHANGED
data/lib/zold/node/front.rb
CHANGED
@@ -23,6 +23,7 @@ STDOUT.sync = true
|
|
23
23
|
require 'json'
|
24
24
|
require 'sinatra/base'
|
25
25
|
require 'webrick'
|
26
|
+
require 'concurrent'
|
26
27
|
require_relative '../version'
|
27
28
|
require_relative '../wallet'
|
28
29
|
require_relative '../log'
|
@@ -84,6 +85,8 @@ module Zold
|
|
84
85
|
JSON.pretty_generate(
|
85
86
|
version: VERSION,
|
86
87
|
score: score.to_h,
|
88
|
+
pid: Process.pid,
|
89
|
+
cpus: Concurrent.processor_count,
|
87
90
|
uptime: `uptime`.strip,
|
88
91
|
wallets: settings.wallets.all.count,
|
89
92
|
remotes: settings.remotes.all.count,
|
data/lib/zold/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|