lnwallet: add a MaturityDelay field to UnilateralCloseSummary
This commit adds a new field: MaturityDelay, to the UnilateralCloseSummary struct. This new field will be required, in an upcoming update as it’s needed in order to properly sweep the second-level HTLC outputs after MaturityDelay blocks has passed since confirmation.
This commit is contained in:
parent
34604f6214
commit
8a682d9ec3
@ -1466,6 +1466,7 @@ func (lc *LightningChannel) closeObserver(channelCloseNtfn *chainntnfs.SpendEven
|
|||||||
ChannelCloseSummary: closeSummary,
|
ChannelCloseSummary: closeSummary,
|
||||||
SelfOutPoint: selfPoint,
|
SelfOutPoint: selfPoint,
|
||||||
SelfOutputSignDesc: selfSignDesc,
|
SelfOutputSignDesc: selfSignDesc,
|
||||||
|
MaturityDelay: uint32(lc.remoteChanCfg.CsvDelay),
|
||||||
HtlcResolutions: htlcResolutions,
|
HtlcResolutions: htlcResolutions,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3374,6 +3375,11 @@ type UnilateralCloseSummary struct {
|
|||||||
// generating a valid signature to sweep the output paying to us
|
// generating a valid signature to sweep the output paying to us
|
||||||
SelfOutputSignDesc *SignDescriptor
|
SelfOutputSignDesc *SignDescriptor
|
||||||
|
|
||||||
|
// MaturityDelay is the relative time-lock, in blocks for all outputs
|
||||||
|
// that pay to the local party within the broadcast commitment
|
||||||
|
// transaction.
|
||||||
|
MaturityDelay uint32
|
||||||
|
|
||||||
// HtlcResolutions is a slice of HTLC resolutions which allows the
|
// HtlcResolutions is a slice of HTLC resolutions which allows the
|
||||||
// local node to sweep any outgoing HTLC"s after the timeout period has
|
// local node to sweep any outgoing HTLC"s after the timeout period has
|
||||||
// passed.
|
// passed.
|
||||||
|
Loading…
Reference in New Issue
Block a user