electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit ba3ac1b6485a93666ae2a78275bb0771519319b0
parent 553993b4d01605d5d745e142c64561c31c342051
Author: SomberNight <somber.night@protonmail.com>
Date:   Tue,  6 Mar 2018 09:21:58 +0100

fee ui qt: fee_e and feerate_e was sometimes not getting filled

Diffstat:
Mgui/qt/main_window.py | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -1329,8 +1329,13 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): # actual fees often differ somewhat. if freeze_feerate or self.fee_slider.is_active(): displayed_feerate = self.feerate_e.get_amount() - displayed_feerate = displayed_feerate // 1000 if displayed_feerate else 0 - displayed_fee = displayed_feerate * size + if displayed_feerate: + displayed_feerate = displayed_feerate // 1000 + else: + # fallback to actual fee + displayed_feerate = fee // size if fee is not None else None + self.feerate_e.setAmount(displayed_feerate) + displayed_fee = displayed_feerate * size if displayed_feerate is not None else None self.fee_e.setAmount(displayed_fee) else: if freeze_fee: