From 45a3bf333b0c0688c35a9e4487e4e229e2013567 Mon Sep 17 00:00:00 2001 From: ziggie Date: Fri, 22 Dec 2023 17:36:41 +0100 Subject: [PATCH] lnwallet: fix logging. --- lnwallet/channel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 1bf57b21d..8bbeb8dd0 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -4438,7 +4438,7 @@ func (lc *LightningChannel) ProcessChanSyncMsg( case msg.NextLocalCommitHeight > remoteTipHeight+1: lc.log.Errorf("sync failed: remote's next commit height is %v, "+ "while we believe it is %v!", - msg.NextLocalCommitHeight, remoteTipHeight) + msg.NextLocalCommitHeight, remoteTipHeight+1) return nil, nil, nil, ErrCannotSyncCommitChains @@ -4446,7 +4446,7 @@ func (lc *LightningChannel) ProcessChanSyncMsg( case msg.NextLocalCommitHeight <= remoteTailHeight: lc.log.Errorf("sync failed: remote's next commit height is %v, "+ "while we believe it is %v!", - msg.NextLocalCommitHeight, remoteTipHeight) + msg.NextLocalCommitHeight, remoteTipHeight+1) // They previously ACKed our current tail, and now they are // waiting for it. They probably lost state.