Disallow 0-value fees

This commit is contained in:
Gregory Sanders 2016-12-14 11:04:03 -05:00
parent 9e669c8837
commit 796072852d

View file

@ -163,7 +163,7 @@ bool CTransaction::HasValidFee() const
CAmount fee = 0;
if (vout[i].IsFee())
fee = vout[i].nValue.GetAmount();
if (!MoneyRange(fee)) {
if (fee == 0 || !MoneyRange(fee)) {
return false;
}
totalFee += fee;