mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-29 12:06:35 -05:00
Resolve rebase issues, restructure code and fix warnings
This commit is contained in:
parent
437c1cbb80
commit
3b005bd15c
10 changed files with 557 additions and 713 deletions
|
|
@ -99,7 +99,6 @@ impl BroadcastSignedTransaction for Wallet {
|
|||
|
||||
// TODO: For retry, use `backoff::ExponentialBackoff` in production as opposed
|
||||
// to `ConstantBackoff`.
|
||||
|
||||
#[async_trait]
|
||||
impl WatchForRawTransaction for Wallet {
|
||||
async fn watch_for_raw_transaction(&self, txid: Txid) -> Transaction {
|
||||
|
|
@ -112,6 +111,7 @@ impl WatchForRawTransaction for Wallet {
|
|||
|
||||
#[async_trait]
|
||||
impl GetRawTransaction for Wallet {
|
||||
// todo: potentially replace with option
|
||||
async fn get_raw_transaction(&self, txid: Txid) -> Result<Transaction> {
|
||||
Ok(self.0.get_raw_transaction(txid).await?)
|
||||
}
|
||||
|
|
@ -154,13 +154,6 @@ impl TransactionBlockHeight for Wallet {
|
|||
}
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl GetRawTransaction for Wallet {
|
||||
async fn get_raw_transaction(&self, _txid: Txid) -> Option<Transaction> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl WaitForTransactionFinality for Wallet {
|
||||
async fn wait_for_transaction_finality(&self, _txid: Txid) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue