diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2020-03-24 15:04:36 +0100 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2021-05-18 02:09:18 +0200 |
commit | 8f073076b102b77897e5a025ae555baae3d1f671 (patch) | |
tree | 18cac8f87812c2f05d5119a09dc2cd7f44f8483e /src/wallet | |
parent | 13d27b452d4b60010c54d4f80757dea9805076be (diff) | |
download | bitcoin-8f073076b102b77897e5a025ae555baae3d1f671.tar.xz |
wallet: Increase OUTPUT_GROUP_MAX_ENTRIES to 100
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<uint64_t,std::string> 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<std::shared_ptr<CWallet>> vpwallets GUARDED_BY(cs_wallets); @@ -2497,7 +2497,7 @@ bool CWallet::SelectCoins(const std::vector<COutput>& 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()); |