Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
reintegrate delegated logic
Browse files Browse the repository at this point in the history
  • Loading branch information
CAGS295 committed Oct 27, 2023
1 parent bb6ce3c commit 12b0091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions romeo/src/bitcoin_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ where
&self,
outputs: Vec<(Script, u64)>,
) -> anyhow::Result<Txid> {
sleep(Duration::from_secs(3)).await;

let blockchain = self.blockchain.clone();
let wallet = self.wallet.clone();

Expand Down Expand Up @@ -317,7 +315,6 @@ mod tests {

let client_sbtc_wallet = client
.wallet
.clone()
.lock()
.unwrap()
.get_address(bdk::wallet::AddressIndex::Peek(0))
Expand Down
3 changes: 2 additions & 1 deletion romeo/src/system.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! System
use std::{fs::create_dir_all, io::Cursor};
use std::{fs::create_dir_all, io::Cursor, time::Duration};

use bdk::{
bitcoin::Txid as BitcoinTxId,
Expand Down Expand Up @@ -440,6 +440,7 @@ async fn fulfill_asset(
)
.expect("Could not create withdrawal fulfillment outputs");

tokio::time::sleep(Duration::from_secs(3)).await;
let txid = bitcoin_client
.sign_and_broadcast(outputs.to_vec())
.await
Expand Down

0 comments on commit 12b0091

Please sign in to comment.