@@ -566,7 +566,7 @@ func (c *commitment) toDiskCommit(
566566// restore commitment state written to disk back into memory once we need to
567567// restart a channel session.
568568func (lc * LightningChannel ) diskHtlcToPayDesc (feeRate chainfee.SatPerKWeight ,
569- commitHeight uint64 , htlc * channeldb.HTLC , localCommitKeys ,
569+ htlc * channeldb.HTLC , localCommitKeys * CommitmentKeyRing ,
570570 remoteCommitKeys * CommitmentKeyRing , whoseCommit lntypes.ChannelParty ,
571571) (PaymentDescriptor , error ) {
572572
@@ -654,8 +654,8 @@ func (lc *LightningChannel) diskHtlcToPayDesc(feeRate chainfee.SatPerKWeight,
654654// to a set of incoming and outgoing payment descriptors. Once reconstructed,
655655// these payment descriptors can be re-inserted into the in-memory updateLog
656656// for each side.
657- func (lc * LightningChannel ) extractPayDescs (commitHeight uint64 ,
658- feeRate chainfee. SatPerKWeight , htlcs []channeldb.HTLC , localCommitKeys ,
657+ func (lc * LightningChannel ) extractPayDescs (feeRate chainfee. SatPerKWeight ,
658+ htlcs []channeldb.HTLC , localCommitKeys * CommitmentKeyRing ,
659659 remoteCommitKeys * CommitmentKeyRing , whoseCommit lntypes.ChannelParty ,
660660) ([]PaymentDescriptor , []PaymentDescriptor , error ) {
661661
@@ -675,7 +675,7 @@ func (lc *LightningChannel) extractPayDescs(commitHeight uint64,
675675 htlc := htlc
676676
677677 payDesc , err := lc .diskHtlcToPayDesc (
678- feeRate , commitHeight , & htlc ,
678+ feeRate , & htlc ,
679679 localCommitKeys , remoteCommitKeys ,
680680 whoseCommit ,
681681 )
@@ -728,7 +728,6 @@ func (lc *LightningChannel) diskCommitToMemCommit(
728728 // HTLC"s into PaymentDescriptor's so we can re-insert them into our
729729 // update log.
730730 incomingHtlcs , outgoingHtlcs , err := lc .extractPayDescs (
731- diskCommit .CommitHeight ,
732731 chainfee .SatPerKWeight (diskCommit .FeePerKw ),
733732 diskCommit .Htlcs , localCommitKeys , remoteCommitKeys ,
734733 whoseCommit ,
0 commit comments