From 4ee48b35a626471883392feae146e5c9b367ddfa Mon Sep 17 00:00:00 2001 From: Michel van Kessel Date: Sat, 21 Nov 2020 14:35:58 +0100 Subject: [PATCH] add 200 inputs to reach GetStakeCombineThreshold()) in case many dust is present in the wallet --- src/wallet/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 6da25b886..ccc35dc9b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -806,7 +806,7 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int && pcoin.first->GetHash() != txNew.vin[0].prevout.hash) { // Stop adding more inputs if already too many inputs - if (txNew.vin.size() >= 10) + if (txNew.vin.size() >= 200) break; // Stop adding inputs if reached reserve limit if (nCredit + pcoin.first->vout[pcoin.second].nValue > nBalance - nReserveBalance)