Browse Source

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

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

closes #6035
hard-fail-on-bad-server-string
SomberNight 5 years ago
parent
commit
a500db371d
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/bitcoin.py

3
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

Loading…
Cancel
Save