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:
parent
a474d66c98
commit
0c8523711b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue