File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8564,6 +8564,13 @@ func NewLocalForceCloseSummary(chanState *channeldb.OpenChannel,
85648564
85658565 // At this point, we'll check to see if we need any extra
85668566 // resolution data for this output.
8567+ var initialKeyRing * CommitmentKeyRing
8568+ if chanState .LocalCommitment .CommitHeight == 0 {
8569+ initialKeyRing = initialCommitmentKeyRingFromState (
8570+ chanState , lntypes .Local ,
8571+ )
8572+ }
8573+
85678574 resolveBlob := fn .MapOptionZ (
85688575 auxResolver ,
85698576 func (a AuxContractResolver ) fn.Result [tlv.Blob ] {
@@ -8582,9 +8589,7 @@ func NewLocalForceCloseSummary(chanState *channeldb.OpenChannel,
85828589 ContractPoint : commitResolution .SelfOutPoint ,
85838590 SignDesc : commitResolution .SelfOutputSignDesc ,
85848591 KeyRing : keyRing ,
8585- InitialKeyRing : initialCommitmentKeyRingFromState (
8586- chanState , lntypes .Local ,
8587- ),
8592+ InitialKeyRing : initialKeyRing ,
85888593 CsvDelay : csvTimeout ,
85898594 CommitFee : chanState .LocalCommitment .CommitFee ,
85908595 })
You can’t perform that action at this time.
0 commit comments