Skip to content

Commit 97c7ad9

Browse files
committed
channeldb: add NextHeight, fix formatting
1 parent 46eaf15 commit 97c7ad9

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
@@ -4543,6 +4543,7 @@ func (lc *LightningChannel) computeView(view *HtlcView,
45434543
// need this to determine which HTLCs are dust, and also the final fee
45444544
// rate.
45454545
view.FeePerKw = commitChain.tip().feePerKw
4546+
view.NextHeight = nextHeight
45464547

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

59895990
if htlc.ID != lc.updateLogs.Remote.htlcCounter {
5990-
return 0, fmt.Errorf("ID %d on HTLC add does not match expected next "+
5991-
"ID %d", htlc.ID, lc.updateLogs.Remote.htlcCounter)
5991+
return 0, fmt.Errorf("ID %d on HTLC add does not match "+
5992+
"expected next ID %d", htlc.ID,
5993+
lc.updateLogs.Remote.htlcCounter)
59925994
}
59935995

59945996
pd := &paymentDescriptor{

0 commit comments

Comments
 (0)