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:
5
side-node/src/bitcoin/driver.rs
Normal file
5
side-node/src/bitcoin/driver.rs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
use crate::bitcoin;
|
||||||
|
|
||||||
|
pub(crate) async fn run() {
|
||||||
|
bitcoin::clients::esplora::run().await.unwrap();
|
||||||
|
}
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
pub mod clients;
|
pub mod clients;
|
||||||
|
pub mod driver;
|
||||||
pub mod keys;
|
pub mod keys;
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ pub async fn run() {
|
|||||||
node.start().await;
|
node.start().await;
|
||||||
}
|
}
|
||||||
Some(Commands::Btc {}) => {
|
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."),
|
None => println!("No command provided. Exiting. See --help for more information."),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user