-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat(bin): node --full
flag
#3965
Conversation
Codecov Report
... and 11 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
bin/reth/src/args/pruning_args.rs
Outdated
// Beacon Deposit Contract deployment block | ||
// https://etherscan.io/tx/0xe75fb554e433e03763a1560646ee22dcb74e5274b34c5ad644e7c0f619a7e1d0 | ||
receipts: Some(PruneMode::Before(11052984)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would add a note here that this is mainnet specific, so this does not work on Sepolia. Thinking about it a bit more - we should either make this handle all our known networks (incl. Sepolia), or (for now) block it so --full
only works on mainnet. Wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainnet: 11052984
Goerli: 4367322
Sepolia: 1273020
Gnosis: 19469077
Holesky: 1
probably, don't prune receipts at all
Resolves #3960
Adds a flag that enables a full node pruning configuration. It takes precedence over pruning configured via reth.toml.
The rationale behind chosen values:
transaction_lookup: None
is required to be able to serveeth_getTransactionByHash
and similar RPCs which requiretx_hash -> tx_number
mapping.receipts: Some(PruneMode::Before(11052984))
is required for CL to be able to reconstruct the deposits cache. The beacon deposit contract was deployed on this block: https://etherscan.io/tx/0xe75fb554e433e03763a1560646ee22dcb74e5274b34c5ad644e7c0f619a7e1d0.The flag is hidden from
--help
until we're ready for production use: