mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Disallow 0-value fees
This commit is contained in:
parent
35af9730f3
commit
1dd6efe64f
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,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