mirror of
https://github.com/monero-project/monero.git
synced 2025-01-28 18:56:31 +02:00
blockchain: match original code's error return in switch_to_alternative_blockchain
This commit is contained in:
parent
b845599c80
commit
c66d573bcc
@ -797,8 +797,8 @@ bool Blockchain::switch_to_alternative_blockchain(std::list<blocks_ext_by_hash::
|
|||||||
if(!r)
|
if(!r)
|
||||||
{
|
{
|
||||||
LOG_PRINT_L1("Failed to push ex-main chain blocks to alternative chain ");
|
LOG_PRINT_L1("Failed to push ex-main chain blocks to alternative chain ");
|
||||||
// previously this would fail the blockchain switching, but I don't
|
rollback_blockchain_switching(disconnected_chain, split_height);
|
||||||
// think this is bad enough to warrant that.
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user