add 100 inputs to reach GetStakeCombineThreshold())

This commit is contained in:
Michel van Kessel
2020-11-22 13:51:02 +01:00
parent d54b625006
commit d0f0d04407

View File

@@ -806,7 +806,7 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int
&& pcoin.first->GetHash() != txNew.vin[0].prevout.hash) && pcoin.first->GetHash() != txNew.vin[0].prevout.hash)
{ {
// Stop adding more inputs if already too many inputs // Stop adding more inputs if already too many inputs
if (txNew.vin.size() >= 200) if (txNew.vin.size() >= 100)
break; break;
// Stop adding inputs if reached reserve limit // Stop adding inputs if reached reserve limit
if (nCredit + pcoin.first->vout[pcoin.second].nValue > nBalance - nReserveBalance) if (nCredit + pcoin.first->vout[pcoin.second].nValue > nBalance - nReserveBalance)