commit 7370910fee9810d6ea8c71dde84a71e595d31ea4 parent c531c729404805eade8da509d5be4823c3c34413 Author: ThomasV <thomasv@electrum.org> Date: Wed, 11 Sep 2019 11:49:24 +0200 fix simple_config.estimate_fee Diffstat:
M | electrum/simple_config.py | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/electrum/simple_config.py b/electrum/simple_config.py @@ -40,11 +40,11 @@ def estimate_fee(tx_size_bytes: int) -> int: fee = SimpleConfig.estimate_fee_for_feerate(fee_per_kb, tx_size_bytes) return fee - global config - if not config: + global _INSTANCE + if not _INSTANCE: return use_fallback_feerate() try: - return config.estimate_fee(tx_size_bytes) + return _INSTANCE.estimate_fee(tx_size_bytes) except NoDynamicFeeEstimates: return use_fallback_feerate()