Skip to content

Commit

Permalink
Allow processing TransactionLockupFailed even swap is not local
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgranhao committed Dec 27, 2024
1 parent d7c6f24 commit 9190972
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/core/src/chain_swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,9 @@ impl ChainSwapHandler {
.map_err(|_| anyhow!("Invalid ChainSwapState for Chain Swap {id}: {status}"))?;

match swap_state {
// If the swap is not local (pulled from real-time sync) we do not:
// - claim twice
// - accept fees twice
// If the swap is not local (pulled from real-time sync) we do not claim twice
ChainSwapStates::TransactionServerMempool
| ChainSwapStates::TransactionServerConfirmed
| ChainSwapStates::TransactionLockupFailed => {
| ChainSwapStates::TransactionServerConfirmed => {
log::debug!("Received {swap_state:?} for non-local Chain swap {id} from status stream, skipping update.");
return Ok(());
}
Expand Down

0 comments on commit 9190972

Please sign in to comment.