mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
fix simple_config.estimate_fee
This commit is contained in:
parent
c531c72940
commit
7370910fee
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue