Renamed bitcoin clients

This commit is contained in:
Dave Hrycyszyn
2024-06-25 13:38:23 +01:00
parent 73f33a61e6
commit 7fb4585deb
5 changed files with 5 additions and 5 deletions

View File

@@ -1,2 +1,2 @@
pub mod btc_electrum_client;
pub mod btc_esplora_client;
pub mod electrum;
pub mod esplora;

View File

@@ -32,7 +32,7 @@ pub async fn run() {
node.start().await;
}
Some(Commands::Btc {}) => {
let _ = bitcoin::clients::btc_esplora_client::run().await;
let _ = bitcoin::clients::esplora::run().await;
}
None => println!("No command provided. Exiting. See --help for more information."),
}
@@ -44,7 +44,7 @@ async fn setup(name: &String) -> SideNode {
let side_dir = utils::home(name);
let bft_crdt_keys = keys::bft_crdt::load_from_file(&side_dir);
let keys = bitcoin::keys::load_from_file(&side_dir).unwrap();
let bitcoin_wallet = bitcoin::clients::btc_electrum_client::create_wallet(keys).unwrap();
let bitcoin_wallet = bitcoin::clients::electrum::create_wallet(keys).unwrap();
let crdt = BaseCrdt::<TransactionList>::new(&bft_crdt_keys);
// Channels for internal communication, and a tokio task for stdin input