1
0

fee-slider: fix dialog crashes for float pos values

This commit is contained in:
bitromortac
2021-01-18 08:05:29 +01:00
committed by ThomasV
parent fe78ed2a8e
commit 08ec368baf
2 changed files with 6 additions and 6 deletions

View File

@@ -325,7 +325,7 @@ class SimpleConfig(Logger):
slider_pos = max(slider_pos, 0)
slider_pos = min(slider_pos, len(FEE_ETA_TARGETS))
if slider_pos < len(FEE_ETA_TARGETS):
num_blocks = FEE_ETA_TARGETS[slider_pos]
num_blocks = FEE_ETA_TARGETS[int(slider_pos)]
fee = self.eta_target_to_fee(num_blocks)
else:
fee = self.eta_target_to_fee(1)