mirror of
https://github.com/monero-project/monero.git
synced 2026-01-23 12:54:29 +01:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user