mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
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,
|
||||
SelfOutPoint: selfPoint,
|
||||
SelfOutputSignDesc: selfSignDesc,
|
||||
MaturityDelay: uint32(lc.remoteChanCfg.CsvDelay),
|
||||
HtlcResolutions: htlcResolutions,
|
||||
}
|
||||
|
||||
@ -3374,6 +3375,11 @@ type UnilateralCloseSummary struct {
|
||||
// generating a valid signature to sweep the output paying to us
|
||||
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
|
||||
// local node to sweep any outgoing HTLC"s after the timeout period has
|
||||
// passed.
|
||||
|
Loading…
Reference in New Issue
Block a user