Skip to main content

fedimint_walletv2_server/
envs.rs

1/// Set to 1/true to stop this guardian from scanning its mempool for pending
2/// receives.
3///
4/// Enumerating a mempool costs one transaction fetch per mempool entry the
5/// guardian has not already cached, which on a busy mainnet node is a large
6/// burst of RPC work every time the cache is cold. A guardian that would rather
7/// not pay for it can turn the mempool half of the pending view off and report
8/// confirmations only, exactly as an esplora-backed guardian already does.
9pub const FM_WALLETV2_DISABLE_MEMPOOL_SCAN_ENV: &str = "FM_WALLETV2_DISABLE_MEMPOOL_SCAN";