mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-08 14:32:24 -04:00
Implement wait_for_transaction_finality
This commit is contained in:
parent
65e910e1c1
commit
765482b0aa
10 changed files with 186 additions and 33 deletions
|
@ -1,5 +1,6 @@
|
|||
pub mod transactions;
|
||||
|
||||
use crate::config::Config;
|
||||
use anyhow::{anyhow, bail, Result};
|
||||
use async_trait::async_trait;
|
||||
use bitcoin::hashes::{hex::ToHex, Hash};
|
||||
|
@ -188,7 +189,7 @@ pub trait WatchForRawTransaction {
|
|||
|
||||
#[async_trait]
|
||||
pub trait WaitForTransactionFinality {
|
||||
async fn wait_for_transaction_finality(&self, txid: Txid);
|
||||
async fn wait_for_transaction_finality(&self, txid: Txid, config: Config) -> Result<()>;
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue