|
@ -2096,12 +2096,13 @@ class LNWallet(LNWorker): |
|
|
|
|
|
|
|
|
def current_feerate_per_kw(self): |
|
|
def current_feerate_per_kw(self): |
|
|
from .simple_config import FEE_LN_ETA_TARGET, FEERATE_FALLBACK_STATIC_FEE, FEERATE_REGTEST_HARDCODED |
|
|
from .simple_config import FEE_LN_ETA_TARGET, FEERATE_FALLBACK_STATIC_FEE, FEERATE_REGTEST_HARDCODED |
|
|
|
|
|
from .simple_config import FEERATE_PER_KW_MIN_RELAY_LIGHTNING |
|
|
if constants.net is constants.BitcoinRegtest: |
|
|
if constants.net is constants.BitcoinRegtest: |
|
|
return FEERATE_REGTEST_HARDCODED // 4 |
|
|
return FEERATE_REGTEST_HARDCODED // 4 |
|
|
feerate_per_kvbyte = self.network.config.eta_target_to_fee(FEE_LN_ETA_TARGET) |
|
|
feerate_per_kvbyte = self.network.config.eta_target_to_fee(FEE_LN_ETA_TARGET) |
|
|
if feerate_per_kvbyte is None: |
|
|
if feerate_per_kvbyte is None: |
|
|
feerate_per_kvbyte = FEERATE_FALLBACK_STATIC_FEE |
|
|
feerate_per_kvbyte = FEERATE_FALLBACK_STATIC_FEE |
|
|
return max(253, feerate_per_kvbyte // 4) |
|
|
return max(FEERATE_PER_KW_MIN_RELAY_LIGHTNING, feerate_per_kvbyte // 4) |
|
|
|
|
|
|
|
|
def create_channel_backup(self, channel_id): |
|
|
def create_channel_backup(self, channel_id): |
|
|
chan = self._channels[channel_id] |
|
|
chan = self._channels[channel_id] |
|
|