Tops up the descriptor cache and m_map_script_pub_keys. The cache is stored in the wallet file and is used to expand the descriptor in GetNewDestination. Descriptor wallets rely more on ephemeral data than legacy wallets. For wallets using unhardened derivation (with or without private keys), the "keypool" is a single xpub.
Synopsis
Declared in <wallet/scriptpubkeyman.h>
virtual
bool
TopUp(unsigned int size = 0) override;
Return Value
true if the cache was successfully topped up.
Parameters
Name |
Description |
size |
Number of keys to top up to, or 0 to use the configured keypool size. |
Created with MrDocs