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 b845599c80
commit c66d573bcc
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) 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;
} }
} }
} }