lib/zold/node/front.rb in zold-0.16.9 vs lib/zold/node/front.rb in zold-0.16.10
- old
+ new
@@ -36,10 +36,11 @@
require_relative '../size'
require_relative '../wallet'
require_relative '../age'
require_relative '../copies'
require_relative '../log'
+require_relative '../tax'
require_relative '../id'
require_relative '../http'
# The web front of the node.
# Author:: Yegor Bugayenko (yegor256@gmail.com)
@@ -296,9 +297,10 @@
wallet.txns.map(&:to_text).join("\n"),
'',
'--',
"Balance: #{wallet.balance.to_zld(8)} ZLD (#{wallet.balance.to_i} zents)",
"Transactions: #{wallet.txns.count}",
+ "Taxes: #{Tax.new(wallet).paid} paid, the debt is #{Tax.new(wallet).debt}",
"File size: #{File.size(wallet.path)} bytes (#{Copies.new(File.join(settings.copies, id)).all.count} copies)",
"Modified: #{wallet.mtime.utc.iso8601} (#{Age.new(wallet.mtime.utc.iso8601)} ago)",
"Digest: #{wallet.digest}"
].join("\n")
end