zold 0.14.29 → 0.14.30
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/node.rb +5 -5
- data/lib/zold/node/sync_entrance.rb +1 -1
- data/lib/zold/sync_wallets.rb +1 -1
- data/lib/zold/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cc2c9a06ec680bec280cb382f348e26218bb5eb
|
4
|
+
data.tar.gz: ea589142c06d8bfa303c92ac2c4d388d507aeb8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c80a2d92a54afe3fb54ade3df2026c8371d3c419b03cc319d60a096e19cbf2070ec633d578a3210a4c37d4858ff286dc6a65bd9cb257a082f6160e882fa8fa5
|
7
|
+
data.tar.gz: 678171b14e9da38d467d09ebf5a4a9db30520b467dcba16efb06b75ccc4868b44569e8d15ae280761ef724abfd34c84824dde56734bace91874b080098775375
|
data/lib/zold/commands/node.rb
CHANGED
@@ -145,9 +145,9 @@ module Zold
|
|
145
145
|
@log.info(pid)
|
146
146
|
return
|
147
147
|
end
|
148
|
-
|
149
|
-
Front.set(:log,
|
150
|
-
Front.set(:trace,
|
148
|
+
@log = Trace.new(@log, opts['trace-length'])
|
149
|
+
Front.set(:log, @log)
|
150
|
+
Front.set(:trace, @log)
|
151
151
|
Front.set(:version, opts['expose-version'])
|
152
152
|
Front.set(:protocol, Zold::PROTOCOL)
|
153
153
|
Front.set(:logging, @log.debug?)
|
@@ -174,8 +174,8 @@ module Zold
|
|
174
174
|
if opts['standalone']
|
175
175
|
@remotes = Zold::Remotes::Empty.new(file: '/tmp/standalone')
|
176
176
|
@log.debug('Running in standalone mode! (will never talk to other remotes)')
|
177
|
-
|
178
|
-
Zold::Remote.new(remotes: @remotes).run(['remote', 'remove', host, port.to_s
|
177
|
+
elsif @remotes.exists?(host, port)
|
178
|
+
Zold::Remote.new(remotes: @remotes).run(['remote', 'remove', host, port.to_s])
|
179
179
|
@log.info("Removed current node (#{address}) from list of remotes")
|
180
180
|
end
|
181
181
|
Front.set(:ignore_score_weakness, opts['ignore-score-weakness'])
|
@@ -68,7 +68,7 @@ module Zold
|
|
68
68
|
raise "##{Process.pid}/#{Thread.current.name} can't get exclusive access to the wallet #{id}/e \
|
69
69
|
because of the lock at #{lock.path}: #{File.read(lock)}"
|
70
70
|
end
|
71
|
-
if (cycles % 20).zero?
|
71
|
+
if (cycles % 20).zero? && delay > 10
|
72
72
|
@log.info("##{Process.pid}/#{Thread.current.name} still waiting for \
|
73
73
|
exclusive access to #{id}/e, #{delay.round}s already")
|
74
74
|
end
|
data/lib/zold/sync_wallets.rb
CHANGED
@@ -64,7 +64,7 @@ module Zold
|
|
64
64
|
raise "##{Process.pid}/#{Thread.current.name} can't get exclusive access to the wallet #{id} \
|
65
65
|
because of the lock at #{lock.path}: #{File.read(lock)}"
|
66
66
|
end
|
67
|
-
if (cycles % 20).zero?
|
67
|
+
if (cycles % 20).zero? && delay > 10
|
68
68
|
@log.info("##{Process.pid}/#{Thread.current.name} still waiting for \
|
69
69
|
exclusive access to #{id}, #{delay.round}s already: #{File.read(lock)}")
|
70
70
|
end
|
data/lib/zold/version.rb
CHANGED