Merge bitcoindevkit/bdk#1001: Rename "keychanins" to keychains
22b8a4884245449fcf60877ca031e0e9e7495de9 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 22b8a4884245449fcf60877ca031e0e9e7495de9 Tree-SHA512: 13ebbd597771a9d91c317fedc4dc506a275a641b764f24650cd13217cf8ac0d06c42a935a8c9e1e7f4761d2ade473c7f8381e90875e867b7a61381aa33cd8581
This commit is contained in:
commit
8641847e6c
@ -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<_>>();
|
||||
|
@ -73,7 +73,7 @@ fn test_descriptor_checksum() {
|
||||
assert_eq!(checksum.len(), 8);
|
||||
|
||||
let raw_descriptor = wallet
|
||||
.keychanins()
|
||||
.keychains()
|
||||
.iter()
|
||||
.next()
|
||||
.unwrap()
|
||||
|
Loading…
x
Reference in New Issue
Block a user