chore: improve documentation of lookahead
This commit is contained in:
parent
bc796f412a
commit
c9467dcbb2
@ -117,11 +117,12 @@ impl<K: Clone + Ord + Debug> Indexer for KeychainTxOutIndex<K> {
|
|||||||
impl<K> KeychainTxOutIndex<K> {
|
impl<K> KeychainTxOutIndex<K> {
|
||||||
/// Construct a [`KeychainTxOutIndex`] with the given `lookahead`.
|
/// Construct a [`KeychainTxOutIndex`] with the given `lookahead`.
|
||||||
///
|
///
|
||||||
/// The lookahead is the number of scripts to cache ahead of the last revealed script index.
|
/// The `lookahead` is the number of script pubkeys to derive and cache from the internal
|
||||||
/// This is useful to find outputs you own when processing block data that lie beyond the last
|
/// descriptors over and above the last revealed script index. Without a lookahead the index
|
||||||
/// revealed index. In certain situations, such as when performing an initial scan of the
|
/// will miss outputs you own when processing transactions whose output script pubkeys lie
|
||||||
/// blockchain during wallet import, it may be uncertain or unknown what the last revealed index
|
/// beyond the last revealed index. In certain situations, such as when performing an initial
|
||||||
/// is.
|
/// scan of the blockchain during wallet import, it may be uncertain or unknown what the index
|
||||||
|
/// of the last revealed script pubkey actually is.
|
||||||
pub fn new(lookahead: u32) -> Self {
|
pub fn new(lookahead: u32) -> Self {
|
||||||
Self {
|
Self {
|
||||||
inner: SpkTxOutIndex::default(),
|
inner: SpkTxOutIndex::default(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user