mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 08:17:37 +00:00
Merge pull request #4735
73e504c1
rpc: adjust ring size error message now that too high is also possible (moneromooo-monero)a5ca7f4f
core: fix unmixable special case allowing ring size below 11 (moneromooo-monero)
This commit is contained in:
commit
299d75b209
2 changed files with 2 additions and 2 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");
|
||||
tvc.m_low_mixin = true;
|
||||
|
|
|
@ -701,7 +701,7 @@ namespace cryptonote
|
|||
res.status = "Failed";
|
||||
res.reason = "";
|
||||
if ((res.low_mixin = tvc.m_low_mixin))
|
||||
add_reason(res.reason, "ring size too small");
|
||||
add_reason(res.reason, "bad ring size");
|
||||
if ((res.double_spend = tvc.m_double_spend))
|
||||
add_reason(res.reason, "double spend");
|
||||
if ((res.invalid_input = tvc.m_invalid_input))
|
||||
|
|
Loading…
Reference in a new issue