1
0

lnworker: do not create sweep transactions before outputs can be redeemed

This commit is contained in:
ThomasV
2019-05-30 13:17:17 +02:00
parent 2b04cb3bc4
commit 81d340b19c
4 changed files with 59 additions and 53 deletions

View File

@@ -44,6 +44,14 @@ def set_config(c):
global config
config = c
def estimate_fee(tx_size_bytes):
global config
if config:
fee = config.estimate_fee(tx_size_bytes)
else:
fee_per_kb = FEERATE_FALLBACK_STATIC_FEE
fee = SimpleConfig.estimate_fee_for_feerate(fee_per_kb, tx_size_bytes)
return fee
FINAL_CONFIG_VERSION = 3