Ditched the unused run() function in the Bitcoin driver
This commit is contained in:
@@ -2,16 +2,6 @@ use bdk_wallet::bitcoin::{Amount, Network};
|
|||||||
|
|
||||||
use crate::bitcoin::clients;
|
use crate::bitcoin::clients;
|
||||||
|
|
||||||
/// Demonstrates the use of bdk with the Esplora client.
|
|
||||||
///
|
|
||||||
/// This is more complex than the bare `bdk` crate, but the esplora client works.
|
|
||||||
///
|
|
||||||
/// 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> {
|
|
||||||
simple_transfer().await
|
|
||||||
}
|
|
||||||
|
|
||||||
pub(crate) async fn simple_transfer() -> Result<(), anyhow::Error> {
|
pub(crate) async fn simple_transfer() -> Result<(), anyhow::Error> {
|
||||||
let mut dave = clients::esplora::create_wallet("dave", Network::Signet)?;
|
let mut dave = clients::esplora::create_wallet("dave", Network::Signet)?;
|
||||||
let mut sammy = clients::esplora::create_wallet("sammy", Network::Signet)?;
|
let mut sammy = clients::esplora::create_wallet("sammy", Network::Signet)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user