oxen-core/src/daemon
Jason Rhinelander fe2260ea61 Add lokinet ping to RPC and status + status message tweaks
This adds the last lokinet ping time to the second `status` line.  It
also compresses this (and storage server's) ping time format to (for
example) `4.7min` instead of `4.7 minutes ago`.

I also add a few tweaks here to the first line of the status message to
save some space for the most common cases:
- just don't show " on mainnet" at all since that's the common case, and
  instead capitalize "ON TESTNET"/"ON STAGENET" to make it more obvious
  that something is non-default.
- just don't show ", not mining" when not mining
- show the daemon version returned by RPC in addition to the hf version,
  as "vX.Y.Z(net vAA)".  You usually get a version display from an info
  log message when running `lokid version`, but that can be quite
  misleading as it's the local lokid binary version which is not
  necessarily the same version as the running daemon.

Sample output:

SN:

    Height: 174791/174791 (100.0%) ON TESTNET, net hash 455 H/s, v6.0.0(net v14), up to date, 8(out)+12(in) connections, uptime 0d 0h 4m 32s
    SN: ff00062fa69397f5580ac2b3d060064d89edac625c77a58fdcd520f94ea54727 active, proof: (never), last pings: 1.6min (storage), 1.6min (lokinet)

Regular node (while mining):

    Height: 174791/174791 (100.0%) ON TESTNET, mining at 94 H/s, net hash 455 H/s, v6.0.0(net v14), up to date, 8(out)+32(in) connections, uptime 0d 0h 44m 2s
2019-12-04 23:17:49 -04:00
..
CMakeLists.txt Use PkgConfig to properly find zmq/sodium 2019-12-03 00:51:18 -04:00
command_line_args.h Update monero copyright to 2019 pre-emptively to make merge simpler 2019-04-12 14:36:43 +10:00
command_parser_executor.cpp remove obsolete save_graph skeleton code 2019-08-14 22:28:20 -03:00
command_parser_executor.h remove obsolete save_graph skeleton code 2019-08-14 22:28:20 -03:00
command_server.cpp Disable pruning in Loki, it is not supported yet 2019-10-23 13:44:56 +11:00
command_server.h Add ssl_options support to monerod's rpc mode. 2019-05-22 00:09:11 -04:00
core.h Update monero copyright to 2019 pre-emptively to make merge simpler 2019-04-12 14:36:43 +10:00
daemon.cpp Add quorumnet comms 2019-11-27 14:07:45 -04:00
daemon.h Merge commit 'c3de019f565674fd19b9d5cafba015d9ea7f69f7' into LokiMergeUpstream 2019-04-12 15:10:33 +10:00
executor.cpp Merge commit 'c3de019f565674fd19b9d5cafba015d9ea7f69f7' into LokiMergeUpstream 2019-04-12 15:10:33 +10:00
executor.h Merge commit 'c3de019f565674fd19b9d5cafba015d9ea7f69f7' into LokiMergeUpstream 2019-04-12 15:10:33 +10:00
main.cpp Move miner.h to fix cn basic referencing core and core referencing basic (#679) 2019-06-27 19:15:58 +10:00
p2p.h Update monero copyright to 2019 pre-emptively to make merge simpler 2019-04-12 14:36:43 +10:00
protocol.h Update monero copyright to 2019 pre-emptively to make merge simpler 2019-04-12 14:36:43 +10:00
rpc.h Update monero copyright to 2019 pre-emptively to make merge simpler 2019-04-12 14:36:43 +10:00
rpc_command_executor.cpp Add lokinet ping to RPC and status + status message tweaks 2019-12-04 23:17:49 -04:00
rpc_command_executor.h remove obsolete save_graph skeleton code 2019-08-14 22:28:20 -03:00