diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py index 9b3c7d0e4..963f8a844 100644 --- a/electrum/lnpeer.py +++ b/electrum/lnpeer.py @@ -1015,6 +1015,7 @@ class Peer(Logger): # if there are no changes, we will not (and must not) send a new commitment if not chan.has_pending_changes(REMOTE): return + self.logger.info(f'send_commitment. chan {chan.short_channel_id}. ctn: {chan.get_next_ctn(REMOTE)}.') sig_64, htlc_sigs = chan.sign_next_commitment() self.send_message("commitment_signed", channel_id=chan.channel_id, signature=sig_64, num_htlcs=len(htlc_sigs), htlc_signature=b"".join(htlc_sigs)) @@ -1079,6 +1080,7 @@ class Peer(Logger): chan = self.channels[channel_id] if chan.peer_state == peer_states.BAD: return + self.logger.info(f'on_commitment_signed. chan {chan.short_channel_id}. ctn: {chan.get_next_ctn(LOCAL)}.') # make sure there were changes to the ctx, otherwise the remote peer is misbehaving if not chan.has_pending_changes(LOCAL): # TODO if feerate changed A->B->A; so there were updates but the value is identical,