revert txNew.vin.size to 10

More has no real added value and can cause strange results - Need more testing!
This commit is contained in:
Michel van Kessel
2020-11-24 23:29:35 +01:00
parent 4e1e6e83fa
commit 0377343516

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() >= 100)
if (txNew.vin.size() >= 10)
break;
// Stop adding inputs if reached reserve limit
if (nCredit + pcoin.first->vout[pcoin.second].nValue > nBalance - nReserveBalance)