lnbase: use 45000 feerate on regtest for eclair compatibility

This commit is contained in:
Janus 2018-10-12 15:29:21 +02:00 committed by SomberNight
parent 97c9a095a4
commit b21fb16803
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -1225,6 +1225,8 @@ class Peer(PrintError):
await self.update_channel(chan, update)
def current_feerate_per_kw(self):
if constants.net is constants.BitcoinRegtest:
return 45000
from .simple_config import FEE_LN_ETA_TARGET, FEERATE_FALLBACK_STATIC_FEE
feerate_per_kvbyte = self.network.config.eta_target_to_fee(FEE_LN_ETA_TARGET)
if feerate_per_kvbyte is None: