Simplified bitcoin keys module name
This commit is contained in:
@@ -2,7 +2,9 @@ use bft_json_crdt::{
|
||||
json_crdt::{BaseCrdt, SignedOp},
|
||||
keypair::make_keypair,
|
||||
};
|
||||
use side_node::{clients::websocket::Client, crdt::TransactionList, keys, node::SideNode, utils};
|
||||
use side_node::{
|
||||
bitcoin, clients::websocket::Client, crdt::TransactionList, node::SideNode, utils,
|
||||
};
|
||||
use tokio::sync::mpsc;
|
||||
|
||||
#[tokio::test]
|
||||
@@ -35,9 +37,9 @@ 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 mnemonic_words = bitcoin::bitcoin_keys::make_mnemonic();
|
||||
let bitcoin_keys = bitcoin::bitcoin_keys::get(mnemonic_words).unwrap();
|
||||
let bitcoin_wallet = btc_electrum_client::create_wallet(bitcoin_keys).unwrap();
|
||||
let mnemonic_words = bitcoin::keys::make_mnemonic();
|
||||
let keys = bitcoin::keys::get(mnemonic_words).unwrap();
|
||||
let bitcoin_wallet = bitcoin::clients::btc_electrum_client::create_wallet(keys).unwrap();
|
||||
let crdt = BaseCrdt::<TransactionList>::new(&bft_crdt_keys);
|
||||
|
||||
// Channels for internal communication, and a tokio task for stdin input
|
||||
|
||||
Reference in New Issue
Block a user