diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-11 17:23:25 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-11 17:24:02 +0000 |
| commit | e78cea74bd6c0ca88c9b7914dd53a29322357faf (patch) | |
| tree | 627d278173b762781b0d96e536c7bde9f9db86fc | |
| parent | 9c77dbf376e95a32015cb32d1233050241a2c99c (diff) | |
| download | monzero-core-e78cea74bd6c0ca88c9b7914dd53a29322357faf.tar.gz monzero-core-e78cea74bd6c0ca88c9b7914dd53a29322357faf.tar.xz monzero-core-e78cea74bd6c0ca88c9b7914dd53a29322357faf.zip | |
rpc: fix off by one in get_height
| -rw-r--r-- | src/rpc/core_rpc_server.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 71bfcc950..60feabba4 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -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; |
