diff options
| author | Riccardo Spagni <ric@spagni.net> | 2018-11-06 21:31:14 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2018-11-06 21:31:14 +0200 |
| commit | 299d75b20979808dc10f0338eb49503ebbaf3220 (patch) | |
| tree | 3eef77b5ba582fa0b3749cd067d7535daffa0c2f /src/cryptonote_core | |
| parent | 0991aa8964153c2412a7b24b21ebca35be80e54a (diff) | |
| parent | 73e504c1391a1ce130e225a8440558ca298586a2 (diff) | |
| download | monzero-core-299d75b20979808dc10f0338eb49503ebbaf3220.tar.gz monzero-core-299d75b20979808dc10f0338eb49503ebbaf3220.tar.xz monzero-core-299d75b20979808dc10f0338eb49503ebbaf3220.zip | |
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)
Diffstat (limited to 'src/cryptonote_core')
| -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; |
