Skip to content

Commit

Permalink
Fixup quiescence timeout when initiating splice (#2836)
Browse files Browse the repository at this point in the history
Should use the quiescence timeout value instead of the revocation timeout value (copy-paste error) when initiating a splice.
  • Loading branch information
remyers authored Mar 11, 2024
1 parent 1b3e4b0 commit 40ef365
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ class Channel(val nodeParams: NodeParams, val wallet: OnChainChannelFunder with
if (d.commitments.params.remoteParams.initFeatures.hasFeature(Features.SplicePrototype)) {
d.spliceStatus match {
case SpliceStatus.NoSplice if d.commitments.params.useQuiescence =>
startSingleTimer(QuiescenceTimeout.toString, QuiescenceTimeout(peer), nodeParams.channelConf.revocationTimeout)
startSingleTimer(QuiescenceTimeout.toString, QuiescenceTimeout(peer), nodeParams.channelConf.quiescenceTimeout)
if (d.commitments.localIsQuiescent) {
stay() using d.copy(spliceStatus = SpliceStatus.InitiatorQuiescent(cmd)) sending Stfu(d.channelId, initiator = true)
} else {
Expand Down

0 comments on commit 40ef365

Please sign in to comment.