1
0
Fork 0
forked from lthn/blockchain

wallet2: set decoys count for PoS mining tx according to the core runtime config

This commit is contained in:
sowle 2024-01-17 00:39:35 +01:00
parent b81e168b2a
commit c99c23b9da
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -4278,7 +4278,7 @@ bool wallet2::prepare_and_sign_pos_block(const mining_context& cxt, uint64_t ful
uint64_t secret_index = 0; // index of the real stake output
// get decoys outputs and construct miner tx
static size_t required_decoys_count = 4; // TODO @#@# set them somewhere else
const size_t required_decoys_count = m_core_runtime_config.hf4_minimum_mixins == 0 ? 4 /* <-- for tests */ : m_core_runtime_config.hf4_minimum_mixins;
static bool use_only_forced_to_mix = false; // TODO @#@# set them somewhere else
if (required_decoys_count > 0 && !is_auditable())
{