Simplified bitcoin keys module name

This commit is contained in:
Dave Hrycyszyn
2024-06-25 13:36:50 +01:00
parent 037fc27b7b
commit 73f33a61e6
6 changed files with 15 additions and 13 deletions

View File

@@ -5,7 +5,7 @@ use crdt::TransactionList;
use node::SideNode;
use tokio::{sync::mpsc, task};
pub(crate) mod bitcoin;
pub mod bitcoin;
pub(crate) mod cli;
pub mod clients;
pub mod crdt;
@@ -43,8 +43,8 @@ async fn setup(name: &String) -> SideNode {
// First, load up the keys and create a bft-crdt
let side_dir = utils::home(name);
let bft_crdt_keys = keys::bft_crdt::load_from_file(&side_dir);
let bitcoin_keys = bitcoin::bitcoin_keys::load_from_file(&side_dir).unwrap();
let bitcoin_wallet = bitcoin::clients::btc_electrum_client::create_wallet(bitcoin_keys).unwrap();
let keys = bitcoin::keys::load_from_file(&side_dir).unwrap();
let bitcoin_wallet = bitcoin::clients::btc_electrum_client::create_wallet(keys).unwrap();
let crdt = BaseCrdt::<TransactionList>::new(&bft_crdt_keys);
// Channels for internal communication, and a tokio task for stdin input