mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-26 23:13:25 +00:00
restore log lines for send_commitment, on_commitment_signed
This commit is contained in:
parent
87fe2c7d7a
commit
3d0c1dbd5c
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue