wip adding bitcoin keys to side nodes

This commit is contained in:
Dave Hrycyszyn
2024-06-18 16:56:24 +01:00
parent ecec883f9b
commit 706a671902
5 changed files with 19 additions and 12 deletions

View File

@@ -39,7 +39,8 @@ pub async fn run() {
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 = bft_crdt_keys::load_from_file(side_dir);
let bft_crdt_keys = bft_crdt_keys::load_from_file(&side_dir);
let bitcoin_keys = bitcoin_keys::load_from_file(&side_dir);
let crdt = BaseCrdt::<TransactionList>::new(&bft_crdt_keys);
// Channels for internal communication, and a tokio task for stdin input
@@ -54,6 +55,7 @@ async fn setup(name: &String) -> SideNode {
let node = SideNode::new(
crdt,
bft_crdt_keys,
bitcoin_keys,
incoming_receiver,
stdin_receiver,
handle,