Skip to content

Commit

Permalink
feat(docs): Quickstart pruning mention (#2324)
Browse files Browse the repository at this point in the history
Signed-off-by: tomg10 <lemures64@gmail.com>
  • Loading branch information
tomg10 authored Jun 25, 2024
1 parent 7940fa3 commit 8b1fbab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/guides/external-node/00_quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ The HTTP JSON-RPC API can be accessed on port `3060` and WebSocket API can be ac
>
> Those are requirements for a freshly started node and the the state grows about 1TB per month for mainnet
> [!NOTE]
>
> To stop state growth, you can enable state pruning by uncommenting `EN_PRUNING_ENABLED: true` in docker compose file,
> you can read more about pruning in
> [08_pruning.md](https://github.com/matter-labs/zksync-era/blob/main/docs/guides/external-node/08_pruning.md)
- 32 GB of RAM and a relatively modern CPU
- 30 GB of storage for testnet nodes
- 300 GB of storage for mainnet nodes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ services:
EN_MAIN_NODE_URL: https://zksync2-mainnet.zksync.io
EN_L1_CHAIN_ID: 1
EN_L2_CHAIN_ID: 324
# EN_PRUNING_ENABLED: true

EN_STATE_CACHE_PATH: "./db/ext-node/state_keeper"
EN_MERKLE_TREE_PATH: "./db/ext-node/lightweight"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ services:
EN_MAIN_NODE_URL: https://sepolia.era.zksync.dev
EN_L1_CHAIN_ID: 11155111
EN_L2_CHAIN_ID: 300
# EN_PRUNING_ENABLED: true

EN_STATE_CACHE_PATH: "./db/ext-node/state_keeper"
EN_MERKLE_TREE_PATH: "./db/ext-node/lightweight"
Expand Down

0 comments on commit 8b1fbab

Please sign in to comment.