Skip to content

Commit

Permalink
bdk: Call map_keychain in unbounded_spk_iter
Browse files Browse the repository at this point in the history
Every other Wallet method uses map_keychain to make sure to return results
for KeychainKind::External if the method is called with
KeychainKind::Internal and the internal descriptor doesn't exist.
  • Loading branch information
danielabrozzoni committed Feb 26, 2024
1 parent 0a5a82a commit 37269f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bdk/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,7 @@ impl<D> Wallet<D> {
&self,
keychain: KeychainKind,
) -> impl Iterator<Item = (u32, ScriptBuf)> + Clone {
let keychain = self.map_keychain(keychain);
self.indexed_graph.index.unbounded_spk_iter(&keychain)
}

Expand Down

0 comments on commit 37269f5

Please sign in to comment.