mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Disallow 0-value fees
This commit is contained in:
parent
9e669c8837
commit
796072852d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue