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

@ -189,7 +189,7 @@ pub trait BroadcastSignedTransaction {
#[async_trait]
pub trait WatchForRawTransaction {
async fn watch_for_raw_transaction(&self, txid: Txid) -> Result<Transaction>;
async fn watch_for_raw_transaction(&self, txid: Txid) -> Transaction;
}
pub fn recover(S: PublicKey, sig: Signature, encsig: EncryptedSignature) -> Result<SecretKey> {