mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 17:32:33 +00:00
rpc: fix off by one in get_height
This commit is contained in:
parent
9c77dbf376
commit
e78cea74bd
1 changed files with 1 additions and 0 deletions
|
@ -204,6 +204,7 @@ namespace cryptonote
|
|||
|
||||
crypto::hash hash;
|
||||
m_core.get_blockchain_top(res.height, hash);
|
||||
++res.height; // block height to chain height
|
||||
res.hash = string_tools::pod_to_hex(hash);
|
||||
res.status = CORE_RPC_STATUS_OK;
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue