electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit a500db371db414e4235e0609d6c328aa99eb135f
parent ec6be665d56c3517bdc48a59f94e3165fca328a1
Author: SomberNight <somber.night@protonmail.com>
Date:   Sun, 15 Mar 2020 01:26:26 +0100

wallet: put hard limit on minimum of relayfee: 1 sat/byte

(note that the dust limit is calculated based on the relayfee)

closes #6035

Diffstat:
Melectrum/bitcoin.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/electrum/bitcoin.py b/electrum/bitcoin.py @@ -304,8 +304,9 @@ def relayfee(network: 'Network' = None) -> int: fee = network.relay_fee else: fee = FEERATE_DEFAULT_RELAY + # sanity safeguards, as network.relay_fee is coming from a server: fee = min(fee, FEERATE_MAX_RELAY) - fee = max(fee, 0) + fee = max(fee, FEERATE_DEFAULT_RELAY) return fee