Browse Source

qml: clamp min fees in histogram to 1, server can report invalid 0 fees

master
Sander van Grieken 3 years ago
parent
commit
a7e5349a58
  1. 2
      electrum/gui/qml/qenetwork.py

2
electrum/gui/qml/qenetwork.py

@ -102,7 +102,7 @@ class QENetwork(QObject, QtEventListener):
break
slot = min(item[1], bytes_limit-bytes_current)
bytes_current += slot
capped_histogram.append([item[0], slot])
capped_histogram.append([max(1, item[0]), slot]) # clamped to [1,inf]
# add clamping attributes for the GUI
self._fee_histogram = {

Loading…
Cancel
Save