Update fee formula to avoid 0 fee calculation.

This commit is contained in:
nighthawk24 2022-08-16 14:52:57 -04:00
parent 9a717d078b
commit b8d595b943
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ Requirements for gathering consensus
Wallet developers SHOULD update the fees to the proposed formula by Madars and Wallet developers SHOULD update the fees to the proposed formula by Madars and
Kris Nuttycombe [#madars-1]_ Kris Nuttycombe [#madars-1]_
min_fee = base_fee * max(0, #inputs + #outputs - 4) min_fee = base_fee * max(1, #inputs + #outputs - 4)
Where #inputs and #outputs also take into account transparent inputs and outputs. Where #inputs and #outputs also take into account transparent inputs and outputs.
Otherwise, the fee structure (if not otherwise changed) will preferentially encourage Otherwise, the fee structure (if not otherwise changed) will preferentially encourage
@ -154,7 +154,7 @@ Specification
============= =============
Wallets implementing this specification will use a conventional fee in the form of Wallets implementing this specification will use a conventional fee in the form of
min_fee = base_fee * max(0, #inputs + #outputs - 4) min_fee = base_fee * max(1, #inputs + #outputs - 4)
starting from block 1,800,000. starting from block 1,800,000.