mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 14:34:57 -04:00
blockchain: fix bitflipping test with quantized block rewards
Block reward may now be less than the full amount allowed. This was breaking the bitflipping test. We now keep track of whether a block which was accepted by the core has a lower than allowed block reward, and allow this in the test.
This commit is contained in:
parent
22ddf09bea
commit
81cb0fcdcc
4 changed files with 8 additions and 3 deletions
|
@ -618,7 +618,8 @@ bool gen_block_invalid_binary_format::check_block_verification_context(const cry
|
|||
}
|
||||
else
|
||||
{
|
||||
return !bvc.m_added_to_main_chain && (bvc.m_already_exists || bvc.m_marked_as_orphaned || bvc.m_verifivation_failed);
|
||||
return (!bvc.m_added_to_main_chain && (bvc.m_already_exists || bvc.m_marked_as_orphaned || bvc.m_verifivation_failed))
|
||||
|| (bvc.m_added_to_main_chain && bvc.m_partial_block_reward);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue