More pushing code around
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user