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;
|
crypto::hash hash;
|
||||||
m_core.get_blockchain_top(res.height, 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.hash = string_tools::pod_to_hex(hash);
|
||||||
res.status = CORE_RPC_STATUS_OK;
|
res.status = CORE_RPC_STATUS_OK;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue