From 8f073076b102b77897e5a025ae555baae3d1f671 Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Tue, 24 Mar 2020 15:04:36 +0100 Subject: wallet: Increase OUTPUT_GROUP_MAX_ENTRIES to 100 --- src/wallet/wallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wallet') diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 332e7b1397..c21cefa8e0 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -53,7 +53,7 @@ const std::map WALLET_FLAG_CAVEATS{ }, }; -static const size_t OUTPUT_GROUP_MAX_ENTRIES = 10; +static constexpr size_t OUTPUT_GROUP_MAX_ENTRIES{100}; RecursiveMutex cs_wallets; static std::vector> vpwallets GUARDED_BY(cs_wallets); @@ -2497,7 +2497,7 @@ bool CWallet::SelectCoins(const std::vector& vAvailableCoins, const CAm // form groups from remaining coins; note that preset coins will not // automatically have their associated (same address) coins included if (coin_control.m_avoid_partial_spends && vCoins.size() > OUTPUT_GROUP_MAX_ENTRIES) { - // Cases where we have 11+ outputs all pointing to the same destination may result in + // Cases where we have 101+ outputs all pointing to the same destination may result in // privacy leaks as they will potentially be deterministically sorted. We solve that by // explicitly shuffling the outputs before processing Shuffle(vCoins.begin(), vCoins.end(), FastRandomContext()); -- cgit v1.2.3