add 200 inputs to reach GetStakeCombineThreshold())

in case many dust is present in the wallet
This commit is contained in:
Michel van Kessel
2020-11-21 14:35:58 +01:00
parent 316c6eac05
commit 4ee48b35a6

View File

@@ -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)