Skip to content

Commit

Permalink
interactive-tx: disable change check for splice rbf
Browse files Browse the repository at this point in the history
  • Loading branch information
pm47 committed Feb 6, 2025
1 parent b2a7294 commit de23616
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ private class InteractiveTxBuilder(replyTo: ActorRef[InteractiveTxBuilder.Respon
case fundingContributions: InteractiveTxFunder.FundingContributions =>
val changeAmount = fundingContributions.outputs.collectFirst { case o: Output.Local.Change => o.amount }.getOrElse(0.sat)
val maxChangeAmount = (fundingParams.localContribution * nodeParams.channelConf.interactiveTxConf.maxChangeRatio).max(0.sat)
if (fundingParams.localOutputs.isEmpty && changeAmount > maxChangeAmount) {
if (!purpose.isInstanceOf[SpliceTxRbf] && fundingParams.localOutputs.isEmpty && changeAmount > maxChangeAmount) {
log.warn("invalid interactive tx: change amount is too large (max={}, actual={})", maxChangeAmount, changeAmount)
replyTo ! LocalFailure(ChannelFundingError(fundingParams.channelId))
unlockAndStop(fundingContributions.inputs.map(_.outPoint).toSet)
Expand Down

0 comments on commit de23616

Please sign in to comment.