From ecd2c41564e131ba232c186a514503a2c0e30785 Mon Sep 17 00:00:00 2001 From: well-bitlight Date: Wed, 4 Sep 2024 17:02:01 +0800 Subject: [PATCH] chore: remove useless code --- src/wallet.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/wallet.rs b/src/wallet.rs index 4373e7f..b088c3f 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -54,7 +54,6 @@ pub struct AddrIter<'descr, K, D: Descriptor> { generator: &'descr D, network: AddressNetwork, keychain: Keychain, - // TODO: get index index: NormalIndex, _phantom: PhantomData, } @@ -105,11 +104,6 @@ impl> WalletDescr { _phantom: PhantomData, } } - - // Use this unique identifier as an id for important cache of the wallet - pub fn unique_id(&self) -> String { - format!("{:?}-{:?}", self.generator.xpubs().collect::>(), self.network) - } } impl, L2: Layer2Descriptor> WalletDescr {