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 d9dd951 commit 9b4107aCopy full SHA for 9b4107a
crates/bdk/src/wallet/mod.rs
@@ -1986,6 +1986,15 @@ impl<D> Wallet<D> {
1986
pub fn local_chain(&self) -> &LocalChain {
1987
&self.chain
1988
}
1989
+
1990
+ /// Set lookahead for all keychains.
1991
+ pub fn set_lookahead_for_all(&mut self, lookahead: u32) {
1992
+ // Having a lookahead of 0, means if we sync the chain
1993
+ // we would not find any update since we don't have any
1994
+ // store scripts in our indexer.
1995
+ assert_ne!(lookahead, 0, "lookahead must be greater than 0");
1996
+ self.indexed_graph.index.set_lookahead_for_all(lookahead);
1997
+ }
1998
1999
2000
impl<D> AsRef<bdk_chain::tx_graph::TxGraph<ConfirmationTimeAnchor>> for Wallet<D> {
0 commit comments