Skip to content

Commit

Permalink
lnwallet: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Dec 16, 2024
1 parent 39584be commit 7882e1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lnwallet/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@ func (lc *LightningChannel) restorePendingRemoteUpdates(
localCommitmentHeight uint64,
pendingRemoteCommit *commitment) error {

lc.log.Debugf("Restoring %v dangling remote updates",
lc.log.Debugf("Restoring %v dangling remote updates pending our sig",
len(unsignedAckedUpdates))

for _, logUpdate := range unsignedAckedUpdates {
Expand Down Expand Up @@ -1829,6 +1829,9 @@ func (lc *LightningChannel) restorePendingLocalUpdates(
pendingCommit := pendingRemoteCommitDiff.Commitment
pendingHeight := pendingCommit.CommitHeight

lc.log.Debugf("Restoring pending remote commitment %v at commit "+
"height %v", pendingCommit.CommitTx.TxHash(), pendingHeight)

auxResult, err := fn.MapOptionZ(
lc.leafStore,
func(s AuxLeafStore) fn.Result[CommitDiffAuxResult] {
Expand Down

0 comments on commit 7882e1c

Please sign in to comment.