forked from lthn/blockchain
wallet2: set decoys count for PoS mining tx according to the core runtime config
This commit is contained in:
parent
b81e168b2a
commit
c99c23b9da
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue