add cumulative difficulty to diff command

This commit is contained in:
wowario 2018-12-18 01:46:48 +03:00
parent 389d2bc53e
commit 1a8353dd90
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111

View file

@ -323,6 +323,7 @@ bool t_rpc_command_executor::show_difficulty() {
tools::success_msg_writer() << "BH: " << res.height tools::success_msg_writer() << "BH: " << res.height
<< ", TH: " << res.top_block_hash << ", TH: " << res.top_block_hash
<< ", DIFF: " << res.difficulty << ", DIFF: " << res.difficulty
<< ", CUM_DIFF: " << res.cumulative_difficulty
<< ", HR: " << res.difficulty / res.target << " H/s"; << ", HR: " << res.difficulty / res.target << " H/s";
return true; return true;