Skip to content

Commit 4a65a12

Browse files
committed
Merge #1104: refactor: use set_lookahead in set_lookahead_for_all
e89cf5a refactor: use set_lookahead in set_lookahead_for_all (Vladimir Fomene) Pull request description: ### Description Use set_lookahead in set_lookahead_for_all. ### 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: realeinherjar: ACK: e89cf5a evanlinjin: ACK e89cf5a Tree-SHA512: 02d226be7adcfd5e23ecb9d17539b0e089cb55ddf9c6de980155960f8181f2d3ea3ac9a93b2c1b7e0a8d4e4c821d92f65405852c696c9a367193a42d60c1aac6
2 parents 4ee11aa + e89cf5a commit 4a65a12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/chain/src/keychain/txout_index.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ impl<K: Clone + Ord + Debug> KeychainTxOutIndex<K> {
167167
/// [`set_lookahead`]: Self::set_lookahead
168168
pub fn set_lookahead_for_all(&mut self, lookahead: u32) {
169169
for keychain in &self.keychains.keys().cloned().collect::<Vec<_>>() {
170-
self.lookahead.insert(keychain.clone(), lookahead);
171-
self.replenish_lookahead(keychain);
170+
self.set_lookahead(keychain, lookahead);
172171
}
173172
}
174173

0 commit comments

Comments
 (0)