Skip to content

Commit 8641847

Browse files
Merge #1001: Rename "keychanins" to keychains
22b8a48 Rename "keychanins" to keychains (Daniela Brozzoni) Pull request description: ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing ACKs for top commit: notmandatory: ACK 22b8a48 Tree-SHA512: 13ebbd597771a9d91c317fedc4dc506a275a641b764f24650cd13217cf8ac0d06c42a935a8c9e1e7f4761d2ade473c7f8381e90875e867b7a61381aa33cd8581
2 parents 9bc7fe8 + 22b8a48 commit 8641847

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/bdk/src/wallet/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl<D> Wallet<D> {
248248
}
249249

250250
/// Iterator over all keychains in this wallet
251-
pub fn keychanins(&self) -> &BTreeMap<KeychainKind, ExtendedDescriptor> {
251+
pub fn keychains(&self) -> &BTreeMap<KeychainKind, ExtendedDescriptor> {
252252
self.keychain_tracker.txout_index.keychains()
253253
}
254254

@@ -1508,7 +1508,7 @@ impl<D> Wallet<D> {
15081508

15091509
if params.add_global_xpubs {
15101510
let all_xpubs = self
1511-
.keychanins()
1511+
.keychains()
15121512
.iter()
15131513
.flat_map(|(_, desc)| desc.get_extended_keys())
15141514
.collect::<Vec<_>>();

crates/bdk/tests/wallet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn test_descriptor_checksum() {
7373
assert_eq!(checksum.len(), 8);
7474

7575
let raw_descriptor = wallet
76-
.keychanins()
76+
.keychains()
7777
.iter()
7878
.next()
7979
.unwrap()

0 commit comments

Comments
 (0)