From 0c8523711b86f18cb1ed5b93b0b171252ad26215 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 24 Aug 2015 18:39:08 +0100 Subject: [PATCH] blockchain: fix return value on out of range start offset The original code would go through the normal code and end up returning true with an empty set. --- src/cryptonote_core/blockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index d992176a8..56eae7901 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1712,7 +1712,7 @@ bool Blockchain::find_blockchain_supplement(const uint64_t req_start_block, cons // if requested height is higher than our chain, return false -- we can't help if (req_start_block >= m_db->height()) { - return false; + return true; } start_height = req_start_block; }