This commit is contained in:
Dave Hrycyszyn
2024-06-24 08:02:17 +01:00
parent d6c118ca3b
commit 643a0d7f52
5 changed files with 120 additions and 61 deletions

View File

@@ -35,7 +35,8 @@ async fn test_distribute_via_websockets() {
async fn setup(_: &str) -> SideNode {
// First, load up the keys and create a bft-crdt
let bft_crdt_keys = make_keypair();
let bitcoin_keys = keys::bitcoin::make_keypair();
let mnemonic_words = keys::bitcoin::make_mnemonic();
let bitcoin_wallet = keys::bitcoin::create_wallet(mnemonic_words).unwrap();
let crdt = BaseCrdt::<TransactionList>::new(&bft_crdt_keys);
// Channels for internal communication, and a tokio task for stdin input
@@ -47,7 +48,7 @@ async fn setup(_: &str) -> SideNode {
let node = SideNode::new(
crdt,
bft_crdt_keys,
bitcoin_keys,
bitcoin_wallet,
incoming_receiver,
stdin_receiver,
handle,