mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
fe2260ea61
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 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
command_line_args.h | ||
command_parser_executor.cpp | ||
command_parser_executor.h | ||
command_server.cpp | ||
command_server.h | ||
core.h | ||
daemon.cpp | ||
daemon.h | ||
executor.cpp | ||
executor.h | ||
main.cpp | ||
p2p.h | ||
protocol.h | ||
rpc.h | ||
rpc_command_executor.cpp | ||
rpc_command_executor.h |