mirror of
https://github.com/monero-project/monero.git
synced 2024-12-28 17:29:23 -05:00
blockchain: make some flag twiddling code closer to the original
Probably paranoid and unnecessary
This commit is contained in:
parent
81cb0fcdcc
commit
737b6d6cf5
@ -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);
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user