Made the wallet's Network configurable

This commit is contained in:
Dave Hrycyszyn
2024-06-25 15:05:33 +01:00
parent 7effe9455f
commit a6105cf2bf
2 changed files with 6 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ use crate::bitcoin::clients;
/// Also, it very handily works with the mutinynet.com esplora server, which is configured
/// with 30 second block times.
pub(crate) async fn run() -> Result<(), anyhow::Error> {
let mut dave = clients::esplora::create_wallet("dave")?;
let mut dave = clients::esplora::create_wallet("dave", Network::Signet)?;
let _next_address = dave.next_unused_address()?;