mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-11 09:21:38 +02:00
lnwallet: add NextHeight to HtlcView
This commit is contained in:
parent
3f4fa79cf5
commit
9795a7856b
@ -3100,6 +3100,10 @@ func HtlcIsDust(chanType channeldb.ChannelType,
|
|||||||
// HtlcView represents the "active" HTLCs at a particular point within the
|
// HtlcView represents the "active" HTLCs at a particular point within the
|
||||||
// history of the HTLC update log.
|
// history of the HTLC update log.
|
||||||
type HtlcView struct {
|
type HtlcView struct {
|
||||||
|
// NextHeight is the height of the commitment transaction that will be
|
||||||
|
// created using this view.
|
||||||
|
NextHeight uint64
|
||||||
|
|
||||||
// OurUpdates are our outgoing HTLCs.
|
// OurUpdates are our outgoing HTLCs.
|
||||||
OurUpdates []*PaymentDescriptor
|
OurUpdates []*PaymentDescriptor
|
||||||
|
|
||||||
@ -3300,7 +3304,8 @@ func (lc *LightningChannel) evaluateHTLCView(view *HtlcView, ourBalance,
|
|||||||
// view. If any fee updates are found when evaluating the view, it will
|
// view. If any fee updates are found when evaluating the view, it will
|
||||||
// be updated.
|
// be updated.
|
||||||
newView := &HtlcView{
|
newView := &HtlcView{
|
||||||
FeePerKw: view.FeePerKw,
|
FeePerKw: view.FeePerKw,
|
||||||
|
NextHeight: nextHeight,
|
||||||
}
|
}
|
||||||
|
|
||||||
// We use two maps, one for the local log and one for the remote log to
|
// We use two maps, one for the local log and one for the remote log to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user