Rename the library to bdk

This commit is contained in:
Alekos Filini
2020-09-14 14:25:38 +02:00
committed by Steve Myers
parent efdd11762c
commit d7ee38cc52
21 changed files with 92 additions and 92 deletions

View File

@@ -42,8 +42,8 @@
//! ```no_run
//! # use std::sync::Arc;
//! # use bitcoin::*;
//! # use magical::*;
//! # use magical::blockchain::compact_filters::*;
//! # use bdk::*;
//! # use bdk::blockchain::compact_filters::*;
//! let num_threads = 4;
//!
//! let mempool = Arc::new(Mempool::default());
@@ -55,7 +55,7 @@
//! ))
//! .collect::<Result<_, _>>()?;
//! let blockchain = CompactFiltersBlockchain::new(peers, "./wallet-filters", Some(500_000))?;
//! # Ok::<(), magical::error::Error>(())
//! # Ok::<(), bdk::error::Error>(())
//! ```
use std::collections::HashSet;

View File

@@ -31,10 +31,10 @@
//! ## Example
//!
//! ```no_run
//! # use magical::blockchain::electrum::ElectrumBlockchain;
//! # use bdk::blockchain::electrum::ElectrumBlockchain;
//! let client = electrum_client::Client::new("ssl://electrum.blockstream.info:50002", None)?;
//! let blockchain = ElectrumBlockchain::from(client);
//! # Ok::<(), magical::Error>(())
//! # Ok::<(), bdk::Error>(())
//! ```
use std::collections::HashSet;
@@ -60,7 +60,7 @@ pub struct ElectrumBlockchain(Client);
#[cfg(test)]
#[cfg(feature = "test-electrum")]
#[magical_blockchain_tests(crate)]
#[bdk_blockchain_tests(crate)]
fn local_electrs() -> ElectrumBlockchain {
ElectrumBlockchain::from(Client::new(&testutils::get_electrum_url(), None).unwrap())
}

View File

@@ -30,9 +30,9 @@
//! ## Example
//!
//! ```no_run
//! # use magical::blockchain::esplora::EsploraBlockchain;
//! # use bdk::blockchain::esplora::EsploraBlockchain;
//! let blockchain = EsploraBlockchain::new("https://blockstream.info/testnet/api");
//! # Ok::<(), magical::Error>(())
//! # Ok::<(), bdk::Error>(())
//! ```
use std::collections::{HashMap, HashSet};