Browse Source

fees: add 1-2 s/b static options

3.3.3.1
SomberNight 6 years ago
parent
commit
a61953673a
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 5
      electrum/simple_config.py

5
electrum/simple_config.py

@ -22,7 +22,8 @@ FEERATE_MAX_DYNAMIC = 1500000
FEERATE_WARNING_HIGH_FEE = 600000
FEERATE_FALLBACK_STATIC_FEE = 150000
FEERATE_DEFAULT_RELAY = 1000
FEERATE_STATIC_VALUES = [5000, 10000, 20000, 30000, 50000, 70000, 100000, 150000, 200000, 300000]
FEERATE_STATIC_VALUES = [1000, 2000, 5000, 10000, 20000, 30000,
50000, 70000, 100000, 150000, 200000, 300000]
config = None
@ -443,7 +444,7 @@ class SimpleConfig(PrintError):
else:
fee_rate = self.fee_per_kb(dyn=False)
pos = self.static_fee_index(fee_rate)
maxp = 9
maxp = len(FEERATE_STATIC_VALUES) - 1
return maxp, pos, fee_rate
def static_fee(self, i):

Loading…
Cancel
Save