ElementsProject / peerswap

MIT License
109 stars 40 forks source link

Cancel Swap API #85

Open kornpow opened 2 years ago

kornpow commented 2 years ago

I realize cancelling a swap mid-swap would be kind of bad, but there are situations where it appears to me like peerswap has mentioned in the logs that something has timed out, but it doesnt move the swap state to a cancelled state.

Currently I have a stuck swap in this state: State_SwapOutSender_AwaitTxBroadcastedMessage

In general, would be good to have a way to explicity say "I know what I am doing, cancel the swap", because currently I've tried, disconnecting the peer, and restarting the daemon, but the swap wont go away.

nepet commented 2 years ago

@wtogami Is this part of our definition of stable and should be part of the next release?

wtogami commented 1 year ago

I think this is a valid thing to add however after all the fixes this past year I haven't seen a situation where this is needed anymore?