mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
Merge pull request #5421
e78cea74
rpc: fix off by one in get_height (moneromooo-monero)
This commit is contained in:
commit
e89aa2ec56
@ -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 New Issue
Block a user