zold 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d9ca7f98c30ccbf8032cc179e4ea4b4f95a9536
4
- data.tar.gz: 250a7fd607fd32c8c620ca4d74761029b4fbb404
3
+ metadata.gz: b465026197a0d5f1aa6d9821a7d56dfd8a47ff27
4
+ data.tar.gz: e135309f6d0eb7a08b3939002285cf8d5fba34ee
5
5
  SHA512:
6
- metadata.gz: 075214c1530d6e2be45d8b65a9667f7120a6690e0b49ec665f90f98ea4235aa27582bc8fb1df0b0e6f7fff907b390591d388ee10cdfc8afc1b394e5718ca9c9a
7
- data.tar.gz: 3b6eb9f3b2f724a337f8a7b37a4256ba9e09adbc8f6bf227968d574e769adac7ba8190694d00adea305dbcb2aeb84b6a3a5d92cb3ca5b1e19d300c2ee1b0107e
6
+ metadata.gz: 3ed88e357053350010c898b4d90dddc32ab36e4cd7dc34155db296b539b36f4dbd9b3c680fcd95e491bb44887a73201c51f1a2897a5b9c8d59a1bbea7c2d3a24
7
+ data.tar.gz: 4999f7da3a1f05da20c7f4e2a78fd66ea407de1ad15368e51b79fd393ee98baf01b368596fdf454f42558bd311ac2c9552e3e08aa2996533d41cc246b5abb884
@@ -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.debug("#{nodes} copies of #{id} fetched for the total score of #{total}, \
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)
@@ -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
@@ -156,6 +156,7 @@ module Zold
156
156
  score: score.to_h,
157
157
  wallets: settings.wallets.all.count,
158
158
  mtime: wallet.mtime.utc.iso8601,
159
+ digest: wallet.digest,
159
160
  body: AtomicFile.new(wallet.path).read
160
161
  }.to_json
161
162
  end
@@ -67,7 +67,7 @@ module Zold
67
67
  @push = Thread.start do
68
68
  Thread.current.abort_on_exception = true
69
69
  Thread.current.name = 'push'
70
- VerboseThread.new(@log).run do
70
+ VerboseThread.new(@log).run(true) do
71
71
  loop do
72
72
  id = @modified.pop
73
73
  if @remotes.all.empty?
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
@@ -23,6 +23,6 @@
23
23
  # Copyright:: Copyright (c) 2018 Yegor Bugayenko
24
24
  # License:: MIT
25
25
  module Zold
26
- VERSION = '0.14.1'.freeze
26
+ VERSION = '0.14.2'.freeze
27
27
  PROTOCOL = 2
28
28
  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.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko