Skip to content

Commit 077847d

Browse files
committed
lnwallet: fix lint in initial key ring plumbing
1 parent 54ba5cf commit 077847d

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

lnwallet/channel.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ func initialCommitmentKeyRingFromState(chanState *channeldb.OpenChannel,
648648
}
649649

650650
commitPoint := input.ComputeCommitmentPoint(revocation[:])
651+
651652
return DeriveCommitmentKeys(
652653
commitPoint, lntypes.Local, chanState.ChanType,
653654
&chanState.LocalChanCfg, &chanState.RemoteChanCfg,
@@ -669,12 +670,6 @@ func initialCommitmentKeyRingFromState(chanState *channeldb.OpenChannel,
669670
}
670671
}
671672

672-
func (lc *LightningChannel) initialCommitmentKeyRing(
673-
whoseCommit lntypes.ChannelParty) *CommitmentKeyRing {
674-
675-
return initialCommitmentKeyRingFromState(lc.channelState, whoseCommit)
676-
}
677-
678673
// diskCommitToMemCommit converts the on-disk commitment format to our
679674
// in-memory commitment format which is needed in order to properly resume
680675
// channel operations after a restart.
@@ -8479,8 +8474,8 @@ func NewLocalForceCloseSummary(chanState *channeldb.OpenChannel,
84798474
SignDesc: commitResolution.SelfOutputSignDesc,
84808475
KeyRing: keyRing,
84818476
InitialKeyRing: initialKeyRing,
8482-
CsvDelay: csvTimeout,
8483-
CommitFee: chanState.LocalCommitment.CommitFee,
8477+
CsvDelay: csvTimeout,
8478+
CommitFee: chanState.LocalCommitment.CommitFee,
84848479
})
84858480
},
84868481
)

0 commit comments

Comments
 (0)