From 0377343516016faf17ae2816b080d01839014a0a Mon Sep 17 00:00:00 2001 From: Michel van Kessel Date: Tue, 24 Nov 2020 23:29:35 +0100 Subject: [PATCH] revert txNew.vin.size to 10 More has no real added value and can cause strange results - Need more testing! --- 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 4a04b2e4b..6da25b886 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() >= 100) + if (txNew.vin.size() >= 10) break; // Stop adding inputs if reached reserve limit if (nCredit + pcoin.first->vout[pcoin.second].nValue > nBalance - nReserveBalance)