zold 0.23.10 → 0.23.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/zold/commands/remote.rb +1 -1
- data/lib/zold/version.rb +1 -1
- data/test/commands/test_remote.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5849ac3bfc78f34607a15fa94739391b1d655f9c2870d1eb0de3fb9d2eaa2603
|
|
4
|
+
data.tar.gz: 345524d2e2202209dc7a8fcd64835b0168fe58c18035db7d8b208a638e332d88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b274dd3d8f5a7441ba06704e1d3b0baaa14f0b96ba431e163864a7e4652b3f85267f763015b0569b51c0eeb2610cadf9a1ec980a8d08a1256a53ca42753251bf
|
|
7
|
+
data.tar.gz: 0e22e857b8a5aee8b06df59f1979bc33d7c740fb6ffd6ef920f587eea59a0e23c5ec04131bbc7cb09fed31afb8bdf785fdc5e91f703f070cb4903d5cfa45d70c
|
data/lib/zold/commands/remote.rb
CHANGED
|
@@ -345,7 +345,7 @@ it's recommended to reboot, but I don't do it because of --never-reboot")
|
|
|
345
345
|
end
|
|
346
346
|
|
|
347
347
|
def select(opts)
|
|
348
|
-
@remotes.all.sort_by { |r| r[:errors] }.reverse.each_with_index do |r, idx|
|
|
348
|
+
@remotes.all.shuffle.sort_by { |r| r[:errors] }.reverse.each_with_index do |r, idx|
|
|
349
349
|
next if idx < opts['max-nodes']
|
|
350
350
|
next if r[:master] && !opts['masters-too']
|
|
351
351
|
@remotes.remove(r[:host], r[:port])
|
data/lib/zold/version.rb
CHANGED
|
@@ -218,7 +218,7 @@ class TestRemote < Zold::Test
|
|
|
218
218
|
cmd.run(%W[remote add localhost #{port}])
|
|
219
219
|
end
|
|
220
220
|
assert_equal(11 + File.readlines('resources/masters').count, remotes.all.count)
|
|
221
|
-
cmd.run(%w[remote select --max-nodes=5])
|
|
221
|
+
cmd.run(%w[remote select --max-nodes=5 --masters-too])
|
|
222
222
|
assert_equal(5, remotes.all.count)
|
|
223
223
|
end
|
|
224
224
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zold
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.23.
|
|
4
|
+
version: 0.23.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yegor Bugayenko
|
|
@@ -753,7 +753,7 @@ licenses:
|
|
|
753
753
|
- MIT
|
|
754
754
|
metadata: {}
|
|
755
755
|
post_install_message: |-
|
|
756
|
-
Thanks for installing Zold 0.23.
|
|
756
|
+
Thanks for installing Zold 0.23.11!
|
|
757
757
|
Study our White Paper: https://papers.zold.io/wp.pdf
|
|
758
758
|
Read our blog posts: https://blog.zold.io
|
|
759
759
|
Try ZLD online wallet at: https://wts.zold.io
|