More pushing code around

This commit is contained in:
Dave Hrycyszyn
2024-06-07 18:42:28 +01:00
parent 9dc515fb78
commit c3f5b2890b
6 changed files with 51 additions and 54 deletions

View File

@@ -1,7 +1,7 @@
use bft_json_crdt::json_crdt::BaseCrdt;
use fastcrypto::ed25519::Ed25519KeyPair;
use crate::{list_transaction_crdt::TransactionList, websocket::WebSocketClient};
use crate::{crdt::TransactionList, websocket::WebSocketClient};
pub(crate) struct SideNode {
crdt: BaseCrdt<TransactionList>,
@@ -26,11 +26,10 @@ impl SideNode {
self.websocket_client.start().await;
}
fn add_transaction_locally(
fn add_transaction_local(
&mut self,
transaction: serde_json::Value,
) -> bft_json_crdt::json_crdt::SignedOp {
// let last: &Op<Transaction>;
let last = self
.crdt
.doc