From a687a2c51cc0afffbffef6b3099e3130b6933e8c Mon Sep 17 00:00:00 2001 From: codingp110 Date: Mon, 28 Jul 2025 13:23:58 +0530 Subject: [PATCH] fix: remove wallet feature attribute from test Since keychains persistence functions do not have one. Also removed an unnecessary import in tests module. --- src/lib.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2fb50dc..dce51eb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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", @@ -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(); @@ -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(); @@ -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(); @@ -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();