Bump min ring size from 5 to 7 from v7

This commit is contained in:
moneromooo-monero 2018-03-07 10:37:31 +00:00
parent c102c49da5
commit 38657fd0e9
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 9 additions and 4 deletions

View file

@ -2531,7 +2531,7 @@ bool Blockchain::check_tx_inputs(transaction& tx, tx_verification_context &tvc,
{
size_t n_unmixable = 0, n_mixable = 0;
size_t mixin = std::numeric_limits<size_t>::max();
const size_t min_mixin = hf_version >= HF_VERSION_MIN_MIXIN_4 ? 4 : 2;
const size_t min_mixin = hf_version >= HF_VERSION_MIN_MIXIN_6 ? 6 : hf_version >= HF_VERSION_MIN_MIXIN_4 ? 4 : 2;
for (const auto& txin : tx.vin)
{
// non txin_to_key inputs will be rejected below