chore: expose PruneConfig in CLI args (#10639)

Co-authored-by: garwah <garwah@garwah>
Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com>
This commit is contained in:
garwah
2024-09-06 20:58:44 +10:00
committed by GitHub
parent 3e2c34ac6c
commit b13e982cd4
8 changed files with 385 additions and 29 deletions

55
book/cli/reth/node.md vendored
View File

@ -580,7 +580,60 @@ Dev testnet:
Pruning:
--full
Run full node. Only the most recent [`MINIMUM_PRUNING_DISTANCE`] block states are stored. This flag takes priority over pruning configuration in reth.toml
Run full node. Only the most recent [`MINIMUM_PRUNING_DISTANCE`] block states are stored
--block-interval <BLOCK_INTERVAL>
Minimum pruning interval measured in blocks
[default: 0]
--prune.senderrecovery.full
Prunes all sender recovery data
--prune.senderrecovery.distance <BLOCKS>
Prune sender recovery data before the `head-N` block number. In other words, keep last N + 1 blocks
--prune.senderrecovery.before <BLOCK_NUMBER>
Prune sender recovery data before the specified block number. The specified block number is not pruned
--prune.transactionlookup.full
Prunes all transaction lookup data
--prune.transactionlookup.distance <BLOCKS>
Prune transaction lookup data before the `head-N` block number. In other words, keep last N + 1 blocks
--prune.transactionlookup.before <BLOCK_NUMBER>
Prune transaction lookup data before the specified block number. The specified block number is not pruned
--prune.receipts.full
Prunes all receipt data
--prune.receipts.distance <BLOCKS>
Prune receipts before the `head-N` block number. In other words, keep last N + 1 blocks
--prune.receipts.before <BLOCK_NUMBER>
Prune receipts before the specified block number. The specified block number is not pruned
--prune.accounthistory.full
Prunes all account history
--prune.accounthistory.distance <BLOCKS>
Prune account before the `head-N` block number. In other words, keep last N + 1 blocks
--prune.accounthistory.before <BLOCK_NUMBER>
Prune account history before the specified block number. The specified block number is not pruned
--prune.storagehistory.full
Prunes all storage history data
--prune.storagehistory.distance <BLOCKS>
Prune storage history before the `head-N` block number. In other words, keep last N + 1 blocks
--prune.storagehistory.before <BLOCK_NUMBER>
Prune storage history before the specified block number. The specified block number is not pruned
--prune.receiptslogfilter <FILTER_CONFIG>
Configure receipts log filter. Format: <`address`>:<`prune_mode`>[,<`address`>:<`prune_mode`>...] Where <`prune_mode`> can be 'full', 'distance:<`blocks`>', or 'before:<`block_number`>'
Engine:
--engine.experimental