lnwallet: add debug logs
This commit is contained in:
1 file changed
+4
-1
+4
-1
@@ -1710,7 +1710,7 @@ func (lc *LightningChannel) restorePendingRemoteUpdates(
|
|||||||
localCommitmentHeight uint64,
|
localCommitmentHeight uint64,
|
||||||
pendingRemoteCommit *commitment) error {
|
pendingRemoteCommit *commitment) error {
|
||||||
|
|
||||||
lc.log.Debugf("Restoring %v dangling remote updates",
|
lc.log.Debugf("Restoring %v dangling remote updates pending our sig",
|
||||||
len(unsignedAckedUpdates))
|
len(unsignedAckedUpdates))
|
||||||
|
|
||||||
for _, logUpdate := range unsignedAckedUpdates {
|
for _, logUpdate := range unsignedAckedUpdates {
|
||||||
@@ -1829,6 +1829,9 @@ func (lc *LightningChannel) restorePendingLocalUpdates(
|
|||||||
pendingCommit := pendingRemoteCommitDiff.Commitment
|
pendingCommit := pendingRemoteCommitDiff.Commitment
|
||||||
pendingHeight := pendingCommit.CommitHeight
|
pendingHeight := pendingCommit.CommitHeight
|
||||||
|
|
||||||
|
lc.log.Debugf("Restoring pending remote commitment %v at commit "+
|
||||||
|
"height %v", pendingCommit.CommitTx.TxHash(), pendingHeight)
|
||||||
|
|
||||||
auxResult, err := fn.MapOptionZ(
|
auxResult, err := fn.MapOptionZ(
|
||||||
lc.leafStore,
|
lc.leafStore,
|
||||||
func(s AuxLeafStore) fn.Result[CommitDiffAuxResult] {
|
func(s AuxLeafStore) fn.Result[CommitDiffAuxResult] {
|
||||||
|
|||||||
Reference in new issue
Block a user