mirror of
https://github.com/monero-project/monero.git
synced 2026-01-20 19:42:58 +01:00
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:
@@ -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);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user