mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 07:58:52 +00:00
rpc: fix off by one in get_height
This commit is contained in:
parent
9c77dbf376
commit
e78cea74bd
@ -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