We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9efaead commit 0ea1fb5Copy full SHA for 0ea1fb5
crates/chain/src/keychain/txout_index.rs
@@ -206,9 +206,10 @@ impl<K: Clone + Ord + Debug> KeychainTxOutIndex<K> {
206
fn next_store_index(&self, keychain: &K) -> u32 {
207
self.inner()
208
.all_spks()
209
- .range((keychain.clone(), u32::MIN)..(keychain.clone(), u32::MAX))
+ .keys()
210
+ .filter(|(k, _)| k == keychain)
211
.last()
- .map_or(0, |((_, v), _)| *v + 1)
212
+ .map_or(0, |(_, index)| *index + 1)
213
}
214
215
/// Generates script pubkey iterators for every `keychain`. The iterators iterate over all
0 commit comments