blockchain: fix total_height in getblocks.bin response

lite
moneromooo-monero 4 years ago committed by wowario
parent c573ee65f6
commit b3847bc194
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -2609,6 +2609,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");

Loading…
Cancel
Save