1
0

lnpeer: send update_fee if channel was never used (workaround eclair issue 1730)

This commit is contained in:
ThomasV
2021-03-19 06:40:49 +01:00
parent 9bb39833cc
commit e3025b3d7b

View File

@@ -1645,6 +1645,11 @@ class Peer(Logger):
self.logger.info("FEES HAVE FALLEN")
elif feerate_per_kw > chan_fee * 2:
self.logger.info("FEES HAVE RISEN")
elif chan.get_oldest_unrevoked_ctn(REMOTE) == 0:
# workaround eclair issue https://github.com/ACINQ/eclair/issues/1730
self.logger.info("updating fee to bump remote ctn")
if feerate_per_kw == chan_fee:
feerate_per_kw += 1
else:
return
self.logger.info(f"(chan: {chan.get_id_for_log()}) current pending feerate {chan_fee}. "