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

@@ -2,7 +2,7 @@ use bft_json_crdt::json_crdt::{BaseCrdt, SignedOp};
use fastcrypto::ed25519::Ed25519KeyPair;
use tokio::sync::mpsc;
use crate::{crdt::TransactionList, utils, websocket::WebSocketClient};
use crate::{clients::websocket::Client, crdt::TransactionList, utils};
pub struct SideNode {
crdt: BaseCrdt<TransactionList>,
@@ -10,7 +10,7 @@ pub struct SideNode {
bitcoin_keys: bitcoin::secp256k1::Keypair,
incoming_receiver: mpsc::Receiver<SignedOp>,
stdin_receiver: std::sync::mpsc::Receiver<String>,
handle: ezsockets::Client<WebSocketClient>,
handle: ezsockets::Client<Client>,
}
impl SideNode {
@@ -20,7 +20,7 @@ impl SideNode {
bitcoin_keys: bitcoin::secp256k1::Keypair,
incoming_receiver: mpsc::Receiver<SignedOp>,
stdin_receiver: std::sync::mpsc::Receiver<String>,
handle: ezsockets::Client<WebSocketClient>,
handle: ezsockets::Client<Client>,
) -> Self {
let node = Self {
crdt,