1
0

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

This commit is contained in:
Sander van Grieken
2023-03-13 14:24:11 +01:00
parent b690f2e5cd
commit a7e5349a58

View File

@@ -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 = {