Rename "keychanins" to keychains

This commit is contained in:
Daniela Brozzoni 2023-06-01 19:24:52 +02:00
parent 9bc7fe855d
commit 22b8a48842
No known key found for this signature in database
GPG Key ID: 7DE4F1FDCED0AB87
2 changed files with 3 additions and 3 deletions

View File

@ -248,7 +248,7 @@ impl<D> Wallet<D> {
} }
/// Iterator over all keychains in this wallet /// Iterator over all keychains in this wallet
pub fn keychanins(&self) -> &BTreeMap<KeychainKind, ExtendedDescriptor> { pub fn keychains(&self) -> &BTreeMap<KeychainKind, ExtendedDescriptor> {
self.keychain_tracker.txout_index.keychains() self.keychain_tracker.txout_index.keychains()
} }
@ -1508,7 +1508,7 @@ impl<D> Wallet<D> {
if params.add_global_xpubs { if params.add_global_xpubs {
let all_xpubs = self let all_xpubs = self
.keychanins() .keychains()
.iter() .iter()
.flat_map(|(_, desc)| desc.get_extended_keys()) .flat_map(|(_, desc)| desc.get_extended_keys())
.collect::<Vec<_>>(); .collect::<Vec<_>>();

View File

@ -73,7 +73,7 @@ fn test_descriptor_checksum() {
assert_eq!(checksum.len(), 8); assert_eq!(checksum.len(), 8);
let raw_descriptor = wallet let raw_descriptor = wallet
.keychanins() .keychains()
.iter() .iter()
.next() .next()
.unwrap() .unwrap()