blockchain: make some flag setting code closer to the original code

It should not matter in practice, but it makes for simpler double
checking when comparing both.
This commit is contained in:
moneromooo-monero 2015-08-24 18:35:34 +01:00
parent d16611360d
commit d28ca8ef41
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 2 deletions

View File

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