Starting to separate the esplora client funcionality from business logic

Having a driver will allow us to start experimenting with transaction signing
more easily
This commit is contained in:
Dave Hrycyszyn
2024-06-25 14:13:06 +01:00
parent 6b29d49aaa
commit 5abc05a8a9
3 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
use crate::bitcoin;
pub(crate) async fn run() {
bitcoin::clients::esplora::run().await.unwrap();
}

View File

@@ -1,3 +1,3 @@
pub mod clients;
pub mod driver;
pub mod keys;

View File

@@ -30,7 +30,7 @@ pub async fn run() {
node.start().await;
}
Some(Commands::Btc {}) => {
let _ = bitcoin::clients::esplora::run().await;
let _ = bitcoin::driver::run().await;
}
None => println!("No command provided. Exiting. See --help for more information."),
}