diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-25 22:10:27 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-25 22:10:27 +0000 |
commit | 737b6d6cf5b46a68304a8f9f83e262e560c33c0a (patch) | |
tree | 2f5f694a2ef575ce72f6375ac6777628d408d5ab /src/cryptonote_core/blockchain.cpp | |
parent | blockchain: fix bitflipping test with quantized block rewards (diff) | |
download | monero-737b6d6cf5b46a68304a8f9f83e262e560c33c0a.tar.xz |
blockchain: make some flag twiddling code closer to the original
Probably paranoid and unnecessary
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index a178d1203..86efc8821 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -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; } |