Make bitcoin::WatchForRawTransaction infallible

And trigger refund if Alice's redeem transaction takes too long.
This commit is contained in:
Lucas Soriano del Pino 2020-10-15 21:17:42 +11:00
parent ba3011a9c9
commit df4ffb65c9
5 changed files with 29 additions and 19 deletions

View file

@ -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())?;