zold 0.14.1 → 0.14.2
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/fetch.rb +2 -2
- data/lib/zold/commands/list.rb +1 -1
- data/lib/zold/node/front.rb +1 -0
- data/lib/zold/node/spread_entrance.rb +1 -1
- data/lib/zold/patch.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: b465026197a0d5f1aa6d9821a7d56dfd8a47ff27
|
4
|
+
data.tar.gz: e135309f6d0eb7a08b3939002285cf8d5fba34ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ed88e357053350010c898b4d90dddc32ab36e4cd7dc34155db296b539b36f4dbd9b3c680fcd95e491bb44887a73201c51f1a2897a5b9c8d59a1bbea7c2d3a24
|
7
|
+
data.tar.gz: 4999f7da3a1f05da20c7f4e2a78fd66ea407de1ad15368e51b79fd393ee98baf01b368596fdf454f42558bd311ac2c9552e3e08aa2996533d41cc246b5abb884
|
data/lib/zold/commands/fetch.rb
CHANGED
@@ -77,8 +77,8 @@ Available options:"
|
|
77
77
|
end
|
78
78
|
raise "There are no remote nodes, run 'zold remote reset'" if nodes.zero?
|
79
79
|
raise "No nodes out of #{nodes} have the wallet #{id}" if done.zero?
|
80
|
-
@log.
|
81
|
-
#{cps.all.count} local copies:\n #{cps.all.map { |c| "#{c[:name]}: #{c[:score]}" }.join("\n ")}")
|
80
|
+
@log.info("#{nodes} copies of #{id} fetched for the total score of #{total}")
|
81
|
+
@log.debug("#{cps.all.count} local copies:\n #{cps.all.map { |c| "#{c[:name]}: #{c[:score]}" }.join("\n ")}")
|
82
82
|
end
|
83
83
|
|
84
84
|
def fetch_one(id, r, cps, opts)
|
data/lib/zold/commands/list.rb
CHANGED
@@ -36,7 +36,7 @@ module Zold
|
|
36
36
|
def run(_ = [])
|
37
37
|
@wallets.all.each do |id|
|
38
38
|
wallet = Wallet.new(File.join(@wallets.path, id))
|
39
|
-
msg = "#{id}: #{wallet.balance}"
|
39
|
+
msg = "#{id}: #{wallet.balance}/#{wallet.txns.count}t"
|
40
40
|
msg += " (net:#{wallet.network})" if wallet.network != Wallet::MAIN_NETWORK
|
41
41
|
@log.info(msg)
|
42
42
|
end
|
data/lib/zold/node/front.rb
CHANGED
data/lib/zold/patch.rb
CHANGED
@@ -85,7 +85,7 @@ module Zold
|
|
85
85
|
next
|
86
86
|
end
|
87
87
|
unless wallet.key.to_s.include?(txn.prefix)
|
88
|
-
@log.error("Payment prefix doesn't match with the key of #{wallet.id}: #{txn.to_text}")
|
88
|
+
@log.error("Payment prefix '#{txn.prefix}' doesn't match with the key of #{wallet.id}: #{txn.to_text}")
|
89
89
|
next
|
90
90
|
end
|
91
91
|
payer = @wallets.find(txn.bnf)
|
data/lib/zold/version.rb
CHANGED