Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ahamlat opened this issue May 17, 2024 · 0 comments
Open

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

ahamlat opened this issue May 17, 2024 · 0 comments
Assignees

Comments

@ahamlat
Copy link
Contributor

ahamlat commented May 17, 2024

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

@joaniefromtheblock joaniefromtheblock self-assigned this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants