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 Mar 7, 2024
1 parent 1934af5 commit 629f2e8
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 @@ -932,6 +932,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 629f2e8

Please sign in to comment.