mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-09 20:49:08 +02:00
channeldb: add NextHeight, fix formatting
This commit is contained in:
parent
f9debb148b
commit
b35dae72a5
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user