Implemented a blank Btc command

This commit is contained in:
Dave Hrycyszyn
2024-06-20 17:21:41 +01:00
parent c0c5a12e84
commit 13e144f19e
7 changed files with 36 additions and 16 deletions

View File

@@ -1,18 +1,18 @@
use bft_json_crdt::json_crdt::{BaseCrdt, SignedOp};
use cli::{parse_args, Commands};
use clients::websocket;
use crdt::TransactionList;
use node::SideNode;
use tokio::{sync::mpsc, task};
use websocket::WebSocketClient;
pub(crate) mod cli;
pub mod clients;
pub mod crdt;
pub(crate) mod init;
pub mod keys;
pub mod node;
pub(crate) mod stdin;
pub mod utils;
pub mod websocket;
#[tokio::main]
pub async fn run() {
@@ -30,6 +30,9 @@ pub async fn run() {
let mut node = setup(name).await;
node.start().await;
}
Some(Commands::Btc {}) => {
println!("BTC command not yet implemented.");
}
None => println!("No command provided. Exiting. See --help for more information."),
}
}
@@ -50,7 +53,7 @@ async fn setup(name: &String) -> SideNode {
});
// Finally, create the node and return it
let handle = WebSocketClient::new(incoming_sender).await;
let handle = websocket::Client::new(incoming_sender).await;
let node = SideNode::new(
crdt,
bft_crdt_keys,