Skip to content

Commit

Permalink
Remove unused/unsafe AbortSwap command
Browse files Browse the repository at this point in the history
  • Loading branch information
remyers committed Nov 23, 2022
1 parent ddfa603 commit 75f1c58
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ object SwapCommands {
case class StartSwapInSender(amount: Satoshi, swapId: String, shortChannelId: ShortChannelId) extends SwapCommand
case class StartSwapOutReceiver(request: SwapOutRequest) extends SwapCommand
case class RestoreSwap(swapData: SwapData) extends SwapCommand
case object AbortSwap extends SwapCommand

sealed trait CreateSwapMessages extends SwapCommand
case object StateTimeout extends CreateSwapMessages with AwaitAgreementMessages with CreateOpeningTxMessages with ClaimSwapCsvMessages with WaitCsvMessages with AwaitFeePaymentMessages with ClaimSwapMessages with PayFeeInvoiceMessages with SendAgreementMessages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ object SwapMaker {
case Failure(e) => context.log.error(s"could not restore swap sender with invalid shortChannelId: $d, $e")
Behaviors.stopped
}
case AbortSwap => Behaviors.stopped
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ object SwapTaker {
case Failure(e) => context.log.error(s"could not restore swap receiver with invalid shortChannelId: $d, $e")
Behaviors.stopped
}
case AbortSwap => Behaviors.stopped
}
}
}
Expand Down

0 comments on commit 75f1c58

Please sign in to comment.