lib/zold/node/front.rb in zold-0.14.8 vs lib/zold/node/front.rb in zold-0.14.9
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
# Copyright (c) 2018 Yegor Bugayenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
# in the Software without restriction, including without limitation the rights
@@ -129,10 +131,11 @@
get '/' do
content_type 'application/json'
JSON.pretty_generate(
version: settings.version,
network: settings.network,
+ protocol: settings.protocol,
score: score.to_h,
pid: Process.pid,
cpus: Concurrent.processor_count,
uptime: `uptime`.strip,
threads: "#{Thread.list.select { |t| t.status == 'run' }.count}/#{Thread.list.count}",
@@ -201,10 +204,10 @@
content_type 'text/plain'
[
wallet.network,
wallet.protocol,
wallet.id.to_s,
- wallet.key.to_s,
+ wallet.key.to_pub,
'',
wallet.txns.map(&:to_text).join("\n"),
'',
'--',
"Balance: #{wallet.balance.to_zld}",