Skip to content

Commit cdc3a4a

Browse files
committed
channeldb: add NextHeight, fix formatting
1 parent d49da57 commit cdc3a4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lnwallet/channel.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4544,6 +4544,7 @@ func (lc *LightningChannel) computeView(view *HtlcView,
45444544
// need this to determine which HTLCs are dust, and also the final fee
45454545
// rate.
45464546
view.FeePerKw = commitChain.tip().feePerKw
4547+
view.NextHeight = nextHeight
45474548

45484549
// We evaluate the view at this stage, meaning settled and failed HTLCs
45494550
// will remove their corresponding added HTLCs. The resulting filtered
@@ -5992,8 +5993,9 @@ func (lc *LightningChannel) ReceiveHTLC(htlc *lnwire.UpdateAddHTLC) (uint64,
59925993
defer lc.Unlock()
59935994

59945995
if htlc.ID != lc.updateLogs.Remote.htlcCounter {
5995-
return 0, fmt.Errorf("ID %d on HTLC add does not match expected next "+
5996-
"ID %d", htlc.ID, lc.updateLogs.Remote.htlcCounter)
5996+
return 0, fmt.Errorf("ID %d on HTLC add does not match "+
5997+
"expected next ID %d", htlc.ID,
5998+
lc.updateLogs.Remote.htlcCounter)
59975999
}
59986000

59996001
pd := &paymentDescriptor{

0 commit comments

Comments
 (0)