Skip to content

Commit

Permalink
chore: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
will-bitlight committed Sep 4, 2024
1 parent 614c983 commit ecd2c41
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ pub struct AddrIter<'descr, K, D: Descriptor<K>> {
generator: &'descr D,
network: AddressNetwork,
keychain: Keychain,
// TODO: get index
index: NormalIndex,
_phantom: PhantomData<K>,
}
Expand Down Expand Up @@ -105,11 +104,6 @@ impl<K, D: Descriptor<K>> WalletDescr<K, D, NoLayer2> {
_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::<Vec<_>>(), self.network)
}
}

impl<K, D: Descriptor<K>, L2: Layer2Descriptor> WalletDescr<K, D, L2> {
Expand Down

0 comments on commit ecd2c41

Please sign in to comment.