diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-27 11:14:52 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-27 11:16:25 +0000 |
commit | a5ca7f4fb57634b1900f2e4d55dfd7177e2bc890 (patch) | |
tree | cc256db57478df3906e4da71c633da9ab6ff6275 | |
parent | Merge pull request #4721 (diff) | |
download | monero-a5ca7f4fb57634b1900f2e4d55dfd7177e2bc890.tar.xz |
core: fix unmixable special case allowing ring size below 11
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 77b6d0b69..e908c2012 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -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; |