docs(book): pruning distance 128 -> 10064, update node size numbers (#5122)

This commit is contained in:
Alexey Shekhirin
2023-10-22 11:34:09 +01:00
committed by GitHub
parent c74abbc6b1
commit 82bffbfd19
4 changed files with 92 additions and 91 deletions

View File

@ -346,7 +346,8 @@ No pruning, run as archive node.
This configuration will:
- Run pruning every 5 blocks
- Continuously prune all transaction senders, account history and storage history before the block `head-128`, i.e. keep the data for the last 129 blocks
- Continuously prune all transaction senders, account history and storage history before the block `head-100_000`,
i.e. keep the data for the last `100_000` blocks
- Prune all receipts before the block 1920000, i.e. keep receipts from the block 1920000
```toml
@ -356,7 +357,7 @@ block_interval = 5
[prune.parts]
# Sender Recovery pruning configuration
sender_recovery = { distance = 128 } # Prune all transaction senders before the block `head-128`, i.e. keep transaction senders for the last 129 blocks
sender_recovery = { distance = 100_000 } # Prune all transaction senders before the block `head-128`, i.e. keep transaction senders for the last 129 blocks
# Transaction Lookup pruning configuration
transaction_lookup = "full" # Prune all TxNumber => TxHash mappings
@ -365,10 +366,10 @@ transaction_lookup = "full" # Prune all TxNumber => TxHash mappings
receipts = { before = 1920000 } # Prune all receipts from transactions before the block 1920000, i.e. keep receipts from the block 1920000
# Account History pruning configuration
account_history = { distance = 128 } # Prune all historical account states before the block `head-128`
account_history = { distance = 100_000 } # Prune all historical account states before the block `head-128`
# Storage History pruning configuration
storage_history = { distance = 128 } # Prune all historical storage states before the block `head-128`
storage_history = { distance = 100_000 } # Prune all historical storage states before the block `head-128`
```
We can also prune receipts more granular, using the logs filtering: