@@ -2242,7 +2242,7 @@ class Channel(val nodeParams: NodeParams, val wallet: OnChainChannelFunder with
2242
2242
val nextFundingTlv : Set [ChannelReestablishTlv ] = Set (ChannelReestablishTlv .NextFundingTlv (d.signingSession.fundingTx.txId))
2243
2243
val channelReestablish = ChannelReestablish (
2244
2244
channelId = d.channelId,
2245
- nextLocalCommitmentNumber = d.signingSession.reconnectNextLocalCommitmentNumber ,
2245
+ nextLocalCommitmentNumber = d.signingSession.nextLocalCommitmentNumber ,
2246
2246
nextRemoteRevocationNumber = 0 ,
2247
2247
yourLastPerCommitmentSecret = PrivateKey (ByteVector32 .Zeroes ),
2248
2248
myCurrentPerCommitmentPoint = myFirstPerCommitmentPoint,
@@ -2260,11 +2260,11 @@ class Channel(val nodeParams: NodeParams, val wallet: OnChainChannelFunder with
2260
2260
// If we disconnected while signing a funding transaction, we may need our peer to retransmit their commit_sig.
2261
2261
val nextLocalCommitmentNumber = d match {
2262
2262
case d : DATA_WAIT_FOR_DUAL_FUNDING_CONFIRMED => d.status match {
2263
- case DualFundingStatus .RbfWaitingForSigs (status) => status.reconnectNextLocalCommitmentNumber
2263
+ case DualFundingStatus .RbfWaitingForSigs (status) => status.nextLocalCommitmentNumber
2264
2264
case _ => d.commitments.localCommitIndex + 1
2265
2265
}
2266
2266
case d : DATA_NORMAL => d.spliceStatus match {
2267
- case SpliceStatus .SpliceWaitingForSigs (status) => status.reconnectNextLocalCommitmentNumber
2267
+ case SpliceStatus .SpliceWaitingForSigs (status) => status.nextLocalCommitmentNumber
2268
2268
case _ => d.commitments.localCommitIndex + 1
2269
2269
}
2270
2270
case _ => d.commitments.localCommitIndex + 1
0 commit comments