HasCollateralInputs should check only for at least 1 collateral (not 2) - fix endless loop

This commit is contained in:
UdjinM6 2015-02-23 20:42:13 +03:00
parent d1a22ad9f9
commit 74551e9f31

View File

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