mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-06-07 06:33:04 -04:00
Don't wait for confirmations again
We only call this function within `CancelTimelockExpired`. There is no need to check the confirmations again.
This commit is contained in:
parent
c92f2dbc77
commit
afb7e816a1
1 changed files with 0 additions and 4 deletions
|
@ -10,10 +10,6 @@ pub async fn publish_cancel_transaction(
|
||||||
tx_cancel_sig_bob: bitcoin::Signature,
|
tx_cancel_sig_bob: bitcoin::Signature,
|
||||||
bitcoin_wallet: &bitcoin::Wallet,
|
bitcoin_wallet: &bitcoin::Wallet,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
bitcoin_wallet
|
|
||||||
.watch_until_status(&tx_lock, |status| status.is_confirmed_with(cancel_timelock))
|
|
||||||
.await?;
|
|
||||||
|
|
||||||
let tx_cancel = bitcoin::TxCancel::new(&tx_lock, cancel_timelock, a.public(), B);
|
let tx_cancel = bitcoin::TxCancel::new(&tx_lock, cancel_timelock, a.public(), B);
|
||||||
|
|
||||||
// If Bob hasn't yet broadcasted the tx cancel, we do it
|
// If Bob hasn't yet broadcasted the tx cancel, we do it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue