Skip to content

add --cache-last-block flag description #1598

Closed
@ahamlat

Description

The flag --cache-last-block created in this PR hyperledger/besu#6009 is not yet documented.
This flags makes Besu cache n blocks data (block headers, block bodies, transactions' receipts and total difficulty).

The default number of blocks to keep in the cache is 0.

This PR will mainly improve the performances of some RPC calls :

Eth_getBlockByNumber
Eth_getBlockByHash
Eth_feeHistory
Eth_getTransactionReceipt
...
The biggest improvement is on Eth_feeHistory.

The new cache in DefaultBlockchain uses 1.35 GiB on Mainnet for 2048 last blocks :

Transactions receipts : 676 MiB
Blocks' bodies : 555 MiB
Blocks' headers : 2 MiB
Total difficulty : less than 1 MiB

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions