Refactored wallet creation so it's outside of either esplora or electrum client code

This commit is contained in:
Dave Hrycyszyn
2024-07-24 16:18:41 +01:00
parent 4cf3d03349
commit c5d52dd537
4 changed files with 47 additions and 25 deletions

View File

@@ -39,7 +39,7 @@ async fn setup(_: &str) -> SideNode {
let bft_crdt_keys = make_keypair();
let mnemonic_words = bitcoin::keys::make_mnemonic();
let keys = bitcoin::keys::get(mnemonic_words).unwrap();
let bitcoin_wallet = bitcoin::clients::electrum::create_wallet(keys).unwrap();
let bitcoin_wallet = bitcoin::clients::create_wallet(keys).unwrap();
let crdt = BaseCrdt::<TransactionList>::new(&bft_crdt_keys);
// Channels for internal communication, and a tokio task for stdin input