|
@ -1294,14 +1294,14 @@ class Peer(Logger): |
|
|
return |
|
|
return |
|
|
feerate_per_kw = self.lnworker.current_feerate_per_kw() |
|
|
feerate_per_kw = self.lnworker.current_feerate_per_kw() |
|
|
chan_fee = chan.get_next_feerate(REMOTE) |
|
|
chan_fee = chan.get_next_feerate(REMOTE) |
|
|
self.logger.info(f"(chan: {chan.get_id_for_log()}) current pending feerate {chan_fee}. " |
|
|
|
|
|
f"new feerate {feerate_per_kw}") |
|
|
|
|
|
if feerate_per_kw < chan_fee / 2: |
|
|
if feerate_per_kw < chan_fee / 2: |
|
|
self.logger.info("FEES HAVE FALLEN") |
|
|
self.logger.info("FEES HAVE FALLEN") |
|
|
elif feerate_per_kw > chan_fee * 2: |
|
|
elif feerate_per_kw > chan_fee * 2: |
|
|
self.logger.info("FEES HAVE RISEN") |
|
|
self.logger.info("FEES HAVE RISEN") |
|
|
else: |
|
|
else: |
|
|
return |
|
|
return |
|
|
|
|
|
self.logger.info(f"(chan: {chan.get_id_for_log()}) current pending feerate {chan_fee}. " |
|
|
|
|
|
f"new feerate {feerate_per_kw}") |
|
|
chan.update_fee(feerate_per_kw, True) |
|
|
chan.update_fee(feerate_per_kw, True) |
|
|
remote_ctn = chan.get_latest_ctn(REMOTE) |
|
|
remote_ctn = chan.get_latest_ctn(REMOTE) |
|
|
self.send_message("update_fee", |
|
|
self.send_message("update_fee", |
|
|