mirror of
https://github.com/monero-project/monero.git
synced 2025-05-05 00:24:58 -04:00
rpc: fix hard_fork_info RPC
I had never tested it, obviously
This commit is contained in:
parent
6f5c129c92
commit
06c65cb0ef
3 changed files with 8 additions and 4 deletions
|
@ -971,11 +971,13 @@ bool t_rpc_command_executor::hard_fork_info(uint8_t version)
|
|||
tools::fail_msg_writer() << fail_message.c_str();
|
||||
return true;
|
||||
}
|
||||
version = version > 0 ? version : res.voting;
|
||||
tools::msg_writer() << "version " << (uint32_t)version << " " << (res.enabled ? "enabled" : "not enabled") <<
|
||||
", " << res.votes << "/" << res.window << " votes, threshold " << res.threshold;
|
||||
tools::msg_writer() << "current version " << (uint32_t)res.version << ", voting for version " << (uint32_t)res.voting;
|
||||
}
|
||||
|
||||
version = version > 0 ? version : res.voting;
|
||||
tools::msg_writer() << "version " << (uint32_t)version << " " << (res.enabled ? "enabled" : "not enabled") <<
|
||||
", " << res.votes << "/" << res.window << " votes, threshold " << res.threshold;
|
||||
tools::msg_writer() << "current version " << (uint32_t)res.version << ", voting for version " << (uint32_t)res.voting;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue