From 1067f6b78776285994f233198991b2a4ab6fc774 Mon Sep 17 00:00:00 2001 From: m4sterbunny Date: Mon, 9 Feb 2026 12:48:27 +0000 Subject: [PATCH] documents cli options Signed-off-by: m4sterbunny --- docs/public-networks/reference/cli/options.md | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/docs/public-networks/reference/cli/options.md b/docs/public-networks/reference/cli/options.md index 124240d197..376effaeeb 100644 --- a/docs/public-networks/reference/cli/options.md +++ b/docs/public-networks/reference/cli/options.md @@ -598,6 +598,92 @@ The number of recent blocks to cache. Using this option can improve the performance of several RPC calls including: [`eth_getBlockByNumber`](../api/index.md#eth_getblockbynumber), [`eth_getBlockByHash`](../api/index.md#eth_getblockbyhash), [`eth_getTransactionReceipt`](../api/index.md#eth_gettransactionreceipt), and especially [`eth_feeHistory`](../api/index.md#eth_feehistory). The default is `0`. +### `cache-last-block-headers` + + + + + +```bash +--cache-last-block-headers= +``` + + + + + +```bash +--cache-last-block-headers=50000 +``` + + + + + +```bash +BESU_CACHE_LAST_BLOCK_HEADERS=50000 +``` + + + + + +```bash +cache-last-block-headers=50000 +``` + + + + + +The number of last block headers to cache from the blocks persisted to the blockchain. +When used with [`--cache-last-block-headers-preload-enabled`](#cache-last-block-headers-preload-enabled), this value defines how many block headers are preloaded into the cache at startup. + +The default is `0`. + +### `cache-last-block-headers-preload-enabled` + + + + + +```bash +--cache-last-block-headers-preload-enabled[=] +``` + + + + + +```bash +--cache-last-block-headers-preload-enabled=true +``` + + + + + +```bash +BESU_CACHE_LAST_BLOCK_HEADERS_PRELOAD_ENABLED=true +``` + + + + + +```bash +cache-last-block-headers-preload-enabled=true +``` + + + + + +Enables preloading the block headers cache at startup. +Only has effect when [`--cache-last-block-headers`](#cache-last-block-headers) is set to a value greater than `0`; the number of block headers preloaded is defined by that option. + +The default is `false`. + ### `color-enabled`