Skip to content

Commit

Permalink
Merge pull request #196 from UdjinM6/v0.11.2.x_fix_HasCollateralInputs
Browse files Browse the repository at this point in the history
V0.11.2.x fix has collateral inputs
  • Loading branch information
evan82 committed Feb 26, 2015
2 parents 13e66ea + 74551e9 commit d8307c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8307c5

Please sign in to comment.