lib/zold/commands/fetch.rb in zold-0.13.42 vs lib/zold/commands/fetch.rb in zold-0.13.43
- old
+ new
@@ -96,11 +96,11 @@
r.assert_score_strength(score) unless opts['ignore-score-weakness']
Tempfile.open do |f|
body = json['body']
File.write(f, body)
wallet = Wallet.new(f.path)
- cps.add(body, score.host, score.port, score.value)
- @log.info("#{r} returned #{body.length}b/#{wallet.txns.count}t \
+ copy = cps.add(body, score.host, score.port, score.value)
+ @log.info("#{r} returned #{body.length}b/#{wallet.txns.count}t as copy ##{copy} \
of #{id} in #{(Time.now - start).round(2)}s: #{Rainbow(score.value).green} (#{json['version']})")
end
score.value
end
end