Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -888,15 +888,13 @@ mod test {
keychain_txout, local_chain,
miniscript::descriptor::Descriptor,
};
#[cfg(feature = "wallet")]
use bdk_wallet::keys::DescriptorPublicKey;

use std::sync::Arc;
use std::{collections::BTreeMap, path::Path};
use tempfile::NamedTempFile;

use bdk_testenv::{block_id, hash, utils};

#[cfg(feature = "wallet")]
const DESCRIPTORS: [&str; 4] = [
"tr([5940b9b9/86'/0'/0']tpubDDVNqmq75GNPWQ9UNKfP43UwjaHU4GYfoPavojQbfpyfZp2KetWgjGBRRAy4tYCrAA6SB11mhQAkqxjh1VtQHyKwT4oYxpwLaGHvoKmtxZf/1/*)#ypcpw2dr",
"tr([5940b9b9/86'/0'/0']tpubDDVNqmq75GNPWQ9UNKfP43UwjaHU4GYfoPavojQbfpyfZp2KetWgjGBRRAy4tYCrAA6SB11mhQAkqxjh1VtQHyKwT4oYxpwLaGHvoKmtxZf/0/*)#44aqnlam",
Expand Down Expand Up @@ -927,7 +925,6 @@ mod test {
assert_eq!(network_changeset, Some(Network::Bitcoin));
}

#[cfg(feature = "wallet")]
#[test]
fn test_keychains_persistence() {
let tmpfile = NamedTempFile::new().unwrap();
Expand All @@ -949,7 +946,6 @@ mod test {
assert_eq!(*desc_changeset.get(&1).unwrap(), change_descriptor);
}

#[cfg(feature = "wallet")]
#[test]
fn test_keychains_persistence_second() {
let tmpfile = NamedTempFile::new().unwrap();
Expand All @@ -972,7 +968,6 @@ mod test {
assert_eq!(*desc_changeset.get(&1).unwrap(), change_descriptor);
}

#[cfg(feature = "wallet")]
#[test]
fn test_single_desc_persistence() {
let tmpfile = NamedTempFile::new().unwrap();
Expand All @@ -993,7 +988,6 @@ mod test {
assert_eq!(desc_changeset.get(&1), None);
}

#[cfg(feature = "wallet")]
#[test]
fn test_descriptor_missing() {
let tmpfile = NamedTempFile::new().unwrap();
Expand Down
Loading