Printing author id at startup
This commit is contained in:
@@ -28,6 +28,7 @@ pub(crate) struct Transaction {
|
|||||||
pub(crate) fn new() -> (BaseCrdt<CrdtList>, Ed25519KeyPair) {
|
pub(crate) fn new() -> (BaseCrdt<CrdtList>, Ed25519KeyPair) {
|
||||||
let keys = make_keypair();
|
let keys = make_keypair();
|
||||||
let bft_crdt = BaseCrdt::<CrdtList>::new(&keys);
|
let bft_crdt = BaseCrdt::<CrdtList>::new(&keys);
|
||||||
|
println!("Author is {}", keys.public().to_string());
|
||||||
(bft_crdt, keys)
|
(bft_crdt, keys)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,7 +48,6 @@ pub(crate) async fn send(
|
|||||||
.list
|
.list
|
||||||
.insert_idx(next - 1, transaction.clone())
|
.insert_idx(next - 1, transaction.clone())
|
||||||
.sign(&keys);
|
.sign(&keys);
|
||||||
// println!("SignedOp being sent is: {:?}", signed_op);
|
|
||||||
|
|
||||||
Ok(ws
|
Ok(ws
|
||||||
.send_text(serde_json::to_string(&signed_op).unwrap())
|
.send_text(serde_json::to_string(&signed_op).unwrap())
|
||||||
|
|||||||
Reference in New Issue
Block a user