mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 23:42:24 +00:00
blockchain: fix wallet syncing from scratch
When the wallet syncs from the first block, it is fine to start at the genesis block.
This commit is contained in:
parent
1d23db220a
commit
198368b2e1
1 changed files with 2 additions and 1 deletions
|
@ -1486,7 +1486,8 @@ bool Blockchain::find_blockchain_supplement(const std::list<crypto::hash>& qbloc
|
|||
}
|
||||
|
||||
// if split_height remains 0, we didn't have any but the genesis block in common
|
||||
if(split_height == 0)
|
||||
// which is only fine if the blocks just have the genesis block
|
||||
if(split_height == 0 && qblock_ids.size() > 1)
|
||||
{
|
||||
LOG_ERROR("Ours and foreign blockchain have only genesis block in common... o.O");
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue