rpc: fix hard_fork_info RPC

I had never tested it, obviously
This commit is contained in:
moneromooo-monero
2015-10-26 10:17:48 +00:00
parent 6f5c129c92
commit 06c65cb0ef
3 changed files with 8 additions and 4 deletions

View File

@@ -889,6 +889,7 @@ namespace cryptonote
res.version = blockchain.get_current_hard_fork_version();
res.enabled = blockchain.get_hard_fork_voting_info(version, res.window, res.votes, res.threshold, res.voting);
res.state = blockchain.get_hard_fork_state();
res.status = CORE_RPC_STATUS_OK;
return true;
#else
error_resp.code = CORE_RPC_ERROR_CODE_UNSUPPORTED_RPC;