diff --git a/crates/chain/src/keychain/txout_index.rs b/crates/chain/src/keychain/txout_index.rs index 9b38a7ade..907876534 100644 --- a/crates/chain/src/keychain/txout_index.rs +++ b/crates/chain/src/keychain/txout_index.rs @@ -192,8 +192,7 @@ impl KeychainTxOutIndex { /// [`set_lookahead`]: Self::set_lookahead pub fn set_lookahead_for_all(&mut self, lookahead: u32) { for keychain in &self.keychains.keys().cloned().collect::>() { - self.lookahead.insert(keychain.clone(), lookahead); - self.replenish_lookahead(keychain); + self.set_lookahead(keychain, lookahead); } }