From f8252fca6850e8cc1b53da21087d9034858fdcfa Mon Sep 17 00:00:00 2001 From: Roei Erez Date: Thu, 27 Feb 2025 22:39:42 +0200 Subject: [PATCH] Only claim if local swap --- lib/core/src/send_swap.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/core/src/send_swap.rs b/lib/core/src/send_swap.rs index dcf1124..1b7ad96 100644 --- a/lib/core/src/send_swap.rs +++ b/lib/core/src/send_swap.rs @@ -92,10 +92,12 @@ impl SendSwapHandler { // Boltz has detected the lockup in the mempool, we can speed up // the claim by doing so cooperatively SubSwapStates::TransactionClaimPending => { - self.cooperate_claim(&swap).await.map_err(|e| { - error!("Could not cooperate Send Swap {id} claim: {e}"); - anyhow!("Could not post claim details. Err: {e:?}") - })?; + if swap.metadata.is_local { + self.cooperate_claim(&swap).await.map_err(|e| { + error!("Could not cooperate Send Swap {id} claim: {e}"); + anyhow!("Could not post claim details. Err: {e:?}") + })?; + } Ok(()) }