diff options
| author | Riccardo Spagni <ric@spagni.net> | 2019-04-15 09:22:50 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2019-04-15 09:22:50 +0200 |
| commit | e89aa2ec5664c0eff0aa73a29015f12a70fd380f (patch) | |
| tree | bbf7f3f20b218db2c73834f065bd63930b10007e | |
| parent | 16b7665533f3a7512fd5a9d16f17c32508870a2b (diff) | |
| parent | e78cea74bd6c0ca88c9b7914dd53a29322357faf (diff) | |
| download | monzero-core-e89aa2ec5664c0eff0aa73a29015f12a70fd380f.tar.gz monzero-core-e89aa2ec5664c0eff0aa73a29015f12a70fd380f.tar.xz monzero-core-e89aa2ec5664c0eff0aa73a29015f12a70fd380f.zip | |
Merge pull request #5421
e78cea74 rpc: fix off by one in get_height (moneromooo-monero)
| -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 bd1455c43..39a8b4745 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; |
