blockchain: match original code's error return in switch_to_alternative_blockchain

This commit is contained in:
moneromooo-monero 2015-08-23 11:23:03 +01:00
parent a33dcdd400
commit 5e3d56d6e3
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -797,8 +797,8 @@ bool Blockchain::switch_to_alternative_blockchain(std::list<blocks_ext_by_hash::
if(!r)
{
LOG_PRINT_L1("Failed to push ex-main chain blocks to alternative chain ");
// previously this would fail the blockchain switching, but I don't
// think this is bad enough to warrant that.
rollback_blockchain_switching(disconnected_chain, split_height);
return false;
}
}
}