mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-23 16:19:47 -05:00
Merge #934
934: Don't wait for refund transaction to receive confirmations r=binarybaron a=binarybaron Don't wait for refund transaction to receive confirmations to mitigate a scenario where the swap is stuck in `BtcCancelled` because it's not resumable. Closes https://github.com/comit-network/xmr-btc-swap/issues/903 Co-authored-by: binarybaron <86064887+binarybaron@users.noreply.github.com>
This commit is contained in:
commit
ec8500551f
@ -659,8 +659,7 @@ impl State6 {
|
|||||||
|
|
||||||
pub async fn publish_refund_btc(&self, bitcoin_wallet: &bitcoin::Wallet) -> Result<()> {
|
pub async fn publish_refund_btc(&self, bitcoin_wallet: &bitcoin::Wallet) -> Result<()> {
|
||||||
let signed_tx_refund = self.signed_refund_transaction()?;
|
let signed_tx_refund = self.signed_refund_transaction()?;
|
||||||
let (_, subscription) = bitcoin_wallet.broadcast(signed_tx_refund, "refund").await?;
|
bitcoin_wallet.broadcast(signed_tx_refund, "refund").await?;
|
||||||
subscription.wait_until_final().await?;
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user