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.
This commit is contained in:
moneromooo-monero 2015-08-24 18:39:08 +01:00
parent a474d66c98
commit 0c8523711b
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 1 deletions

View File

@ -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 requested height is higher than our chain, return false -- we can't help
if (req_start_block >= m_db->height()) if (req_start_block >= m_db->height())
{ {
return false; return true;
} }
start_height = req_start_block; start_height = req_start_block;
} }