[ci] Fix all-keys and cli-utils tests

This commit is contained in:
Steve Myers 2020-10-28 21:34:04 -07:00
parent 7b9df5bbe5
commit 4f7355ec82
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051
5 changed files with 8 additions and 5 deletions

View File

@ -37,8 +37,9 @@ use log::{debug, error, info, trace, LevelFilter};
use bitcoin::Network;
use bdk::bitcoin;
use bdk::blockchain::electrum::{ElectrumBlockchain, ElectrumBlockchainConfig};
use bdk::blockchain::ConfigurableBlockchain;
use bdk::blockchain::ElectrumBlockchain;
use bdk::blockchain::ElectrumBlockchainConfig;
use bdk::cli;
use bdk::sled;
use bdk::Wallet;

View File

@ -55,7 +55,7 @@
//! ))
//! .collect::<Result<_, _>>()?;
//! let blockchain = CompactFiltersBlockchain::new(peers, "./wallet-filters", Some(500_000))?;
//! # Ok::<(), bdk::error::Error>(())
//! # Ok::<(), CompactFiltersError>(())
//! ```
use std::collections::HashSet;

View File

@ -52,6 +52,8 @@ pub use any::{AnyBlockchain, AnyBlockchainConfig};
pub mod electrum;
#[cfg(feature = "electrum")]
pub use self::electrum::ElectrumBlockchain;
#[cfg(feature = "electrum")]
pub use self::electrum::ElectrumBlockchainConfig;
#[cfg(feature = "esplora")]
#[cfg_attr(docsrs, doc(cfg(feature = "esplora")))]

View File

@ -136,7 +136,7 @@ mod test {
let generated_mnemonic: GeneratedKey<_, miniscript::Segwitv0> =
Mnemonic::generate_with_entropy(
(MnemonicType::Words12, Language::English),
crate::keys::test::get_test_entropy(),
crate::keys::test::TEST_ENTROPY,
)
.unwrap();
assert_eq!(generated_mnemonic.valid_networks, any_network());
@ -148,7 +148,7 @@ mod test {
let generated_mnemonic: GeneratedKey<_, miniscript::Segwitv0> =
Mnemonic::generate_with_entropy(
(MnemonicType::Words24, Language::English),
crate::keys::test::get_test_entropy(),
crate::keys::test::TEST_ENTROPY,
)
.unwrap();
assert_eq!(generated_mnemonic.valid_networks, any_network());

View File

@ -578,7 +578,7 @@ pub mod test {
use super::*;
const TEST_ENTROPY: [u8; 32] = [0xAA; 32];
pub const TEST_ENTROPY: [u8; 32] = [0xAA; 32];
#[test]
fn test_keys_generate_xprv() {