Skip to content

Commit f482917

Browse files
committed
channeldb: add NextHeight, fix formatting
1 parent d9290d2 commit f482917

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lnwallet/channel.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -4517,6 +4517,7 @@ func (lc *LightningChannel) computeView(view *HtlcView,
45174517
// need this to determine which HTLCs are dust, and also the final fee
45184518
// rate.
45194519
view.FeePerKw = commitChain.tip().feePerKw
4520+
view.NextHeight = nextHeight
45204521

45214522
// We evaluate the view at this stage, meaning settled and failed HTLCs
45224523
// will remove their corresponding added HTLCs. The resulting filtered
@@ -5963,8 +5964,9 @@ func (lc *LightningChannel) ReceiveHTLC(htlc *lnwire.UpdateAddHTLC) (uint64,
59635964
defer lc.Unlock()
59645965

59655966
if htlc.ID != lc.updateLogs.Remote.htlcCounter {
5966-
return 0, fmt.Errorf("ID %d on HTLC add does not match expected next "+
5967-
"ID %d", htlc.ID, lc.updateLogs.Remote.htlcCounter)
5967+
return 0, fmt.Errorf("ID %d on HTLC add does not match "+
5968+
"expected next ID %d", htlc.ID,
5969+
lc.updateLogs.Remote.htlcCounter)
59685970
}
59695971

59705972
pd := &paymentDescriptor{

0 commit comments

Comments
 (0)