diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-06-19 16:09:28 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-06-19 16:09:28 -0500 |
commit | 8a850ed742e8bbb3f17048ab4dd10af41c202a3e (patch) | |
tree | 90e9b36371bb7bc148dd37356b477d23ea029c55 /src | |
parent | Merge pull request #6645 (diff) | |
parent | blockchain: fix total_height in getblocks.bin response (diff) | |
download | monero-8a850ed742e8bbb3f17048ab4dd10af41c202a3e.tar.xz |
Merge pull request #6646
b7812d1 blockchain: fix total_height in getblocks.bin response (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 2480fb4b0..ec701eb2c 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -2560,6 +2560,7 @@ bool Blockchain::find_blockchain_supplement(const uint64_t req_start_block, cons } db_rtxn_guard rtxn_guard(m_db); + total_height = get_current_blockchain_height(); blocks.reserve(std::min(std::min(max_count, (size_t)10000), (size_t)(total_height - start_height))); CHECK_AND_ASSERT_MES(m_db->get_blocks_from(start_height, 3, max_count, FIND_BLOCKCHAIN_SUPPLEMENT_MAX_SIZE, blocks, pruned, true, get_miner_tx_hash), false, "Error getting blocks"); |