From 7882e1ccffc047ed1c1e4ad1e52966ffb1d1c3a7 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Tue, 5 Nov 2024 08:20:32 +0800 Subject: [PATCH] lnwallet: add debug logs --- lnwallet/channel.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index dc45a12bed..6486464d0f 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -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 { @@ -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] {