mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-27 11:10:31 -05:00
Make bitcoin::WatchForRawTransaction infallible
And trigger refund if Alice's redeem transaction takes too long.
This commit is contained in:
parent
ba3011a9c9
commit
df4ffb65c9
5 changed files with 29 additions and 19 deletions
|
|
@ -472,7 +472,7 @@ impl State4 {
|
|||
|
||||
let tx_redeem_candidate = bitcoin_wallet
|
||||
.watch_for_raw_transaction(tx_redeem.txid())
|
||||
.await?;
|
||||
.await;
|
||||
|
||||
let tx_redeem_sig =
|
||||
tx_redeem.extract_signature_by_key(tx_redeem_candidate, self.b.public())?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue