Skip to content

Commit

Permalink
Make sure the async trait functions implement Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
djordon committed Oct 1, 2024
1 parent 0d6e5d6 commit 7bd06a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions signer/src/bitcoin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@ pub trait BitcoinInteract: Sync + Send {
) -> impl Future<Output = Result<Option<bitcoin::Block>, Error>> + Send;

/// get tx
fn get_tx(&self, txid: &Txid) -> impl Future<Output = Result<Option<GetTxResponse>, Error>>;
fn get_tx(
&self,
txid: &Txid,
) -> impl Future<Output = Result<Option<GetTxResponse>, Error>> + Send;

/// get tx info
fn get_tx_info(
&self,
txid: &Txid,
block_hash: &BlockHash,
) -> impl Future<Output = Result<Option<BitcoinTxInfo>, Error>>;
) -> impl Future<Output = Result<Option<BitcoinTxInfo>, Error>> + Send;

/// Estimate fee rate
// This should be implemented with the help of the `fees::EstimateFees` trait
Expand Down

0 comments on commit 7bd06a4

Please sign in to comment.