From 74551e9f31f10e351de1ec07f60513662ccdb06a Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 23 Feb 2015 20:42:13 +0300 Subject: [PATCH] HasCollateralInputs should check only for at least 1 collateral (not 2) - fix endless loop --- src/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index 6befaeb27..2859d5227 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1721,7 +1721,7 @@ bool CWallet::HasCollateralInputs() const BOOST_FOREACH(const COutput& out, vCoins) if(IsCollateralAmount(out.tx->vout[out.i].nValue)) nFound++; - return nFound > 1; // should have more than one just in case + return nFound > 0; } bool CWallet::IsCollateralAmount(int64_t nInputAmount) const