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
pub fn keychanins(&self) -> &BTreeMap<KeychainKind, ExtendedDescriptor> {
pub fn keychains(&self) -> &BTreeMap<KeychainKind, ExtendedDescriptor> {
self.keychain_tracker.txout_index.keychains()
}
@ -1508,7 +1508,7 @@ impl<D> Wallet<D> {
if params.add_global_xpubs {
let all_xpubs = self
.keychanins()
.keychains()
.iter()
.flat_map(|(_, desc)| desc.get_extended_keys())
.collect::<Vec<_>>();

View File

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