diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 0bd1938a7..c78742d13 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -4544,6 +4544,7 @@ func (lc *LightningChannel) computeView(view *HtlcView, // need this to determine which HTLCs are dust, and also the final fee // rate. view.FeePerKw = commitChain.tip().feePerKw + view.NextHeight = nextHeight // We evaluate the view at this stage, meaning settled and failed HTLCs // will remove their corresponding added HTLCs. The resulting filtered @@ -5992,8 +5993,9 @@ func (lc *LightningChannel) ReceiveHTLC(htlc *lnwire.UpdateAddHTLC) (uint64, defer lc.Unlock() if htlc.ID != lc.updateLogs.Remote.htlcCounter { - return 0, fmt.Errorf("ID %d on HTLC add does not match expected next "+ - "ID %d", htlc.ID, lc.updateLogs.Remote.htlcCounter) + return 0, fmt.Errorf("ID %d on HTLC add does not match "+ + "expected next ID %d", htlc.ID, + lc.updateLogs.Remote.htlcCounter) } pd := &paymentDescriptor{