From ee89a6ce128692fc99e509a98748a325ba80c86c Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 9 Nov 2023 19:25:06 +0100 Subject: [PATCH] wallet2: auditable wallets won't be requesting decoys for PoS anymore as they couldn't be used --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index a4edf54c..377d667d 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3512,7 +3512,7 @@ bool wallet2::prepare_and_sign_pos_block(const currency::pos_entry& pe, currency COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS::response decoys_resp = AUTO_VAL_INIT(decoys_resp); std::vector ring; uint64_t secret_index = 0; // index of the real stake output - if (m_required_decoys_count > 0) + if (m_required_decoys_count > 0 && !is_auditable()) { COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS::request decoys_req = AUTO_VAL_INIT(decoys_req); decoys_req.use_forced_mix_outs = false;