mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
core: fix unmixable special case allowing ring size below 11
This commit is contained in:
parent
4cbb476cd1
commit
a5ca7f4fb5
1 changed files with 1 additions and 1 deletions
|
@ -2530,7 +2530,7 @@ bool Blockchain::check_tx_inputs(transaction& tx, tx_verification_context &tvc,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hf_version >= HF_VERSION_MIN_MIXIN_10 && mixin != 10)
|
if (((hf_version == HF_VERSION_MIN_MIXIN_10 || hf_version == HF_VERSION_MIN_MIXIN_10+1) && mixin != 10) || (hf_version >= HF_VERSION_MIN_MIXIN_10+2 && mixin > 10))
|
||||||
{
|
{
|
||||||
MERROR_VER("Tx " << get_transaction_hash(tx) << " has invalid ring size (" << (mixin + 1) << "), it should be 11");
|
MERROR_VER("Tx " << get_transaction_hash(tx) << " has invalid ring size (" << (mixin + 1) << "), it should be 11");
|
||||||
tvc.m_low_mixin = true;
|
tvc.m_low_mixin = true;
|
||||||
|
|
Loading…
Reference in a new issue