blockchain: make some flag twiddling code closer to the original

Probably paranoid and unnecessary
This commit is contained in:
moneromooo-monero 2015-12-25 22:10:27 +00:00
parent 81cb0fcdcc
commit 737b6d6cf5
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -1327,8 +1327,8 @@ bool Blockchain::handle_alternative_block(const block& b, const crypto::hash& id
bool r = switch_to_alternative_blockchain(alt_chain, true);
bvc.m_added_to_main_chain = r;
bvc.m_verifivation_failed = !r;
if(r) bvc.m_added_to_main_chain = true;
else bvc.m_verifivation_failed = true;
return r;
}