From aadb2e7afa020a4604d38908466b2c3faa0ef367 Mon Sep 17 00:00:00 2001 From: ayaanoncrypto <1.06945712e+08+ayaanoncrypto@users.noreply.github.com> Date: Thu, 27 Aug 2026 01:59:41 +0000 Subject: [PATCH] Enhance documentation for custom deployment scenarios and add GETH_GC_MODE customization --- .env.example | 1 + README.md | 12 ++++++++++++ docker-compose.yml | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index f0ed6fa..e353485 100644 --- a/.env.example +++ b/.env.example @@ -4,3 +4,4 @@ GETH_DATA_DIR=blast-geth-data L1_RPC_URL="your_l1_rpc_url" L1_RPC_KIND="any" OP_NODE_L1_BEACON="your_l1_beacon_api_url" +GETH_GC_MODE=archive diff --git a/README.md b/README.md index 840e8ab..b891c16 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,18 @@ curl -d '{"id":0,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["late **To fully participate in p2p, please ensure TCP/UDP is allowed on port 9003, and add the argument `--p2p.advertise.ip=` to the `op-node` service in the `docker-compose.yml` file.** +## Customization + +You can customize the node's behavior by setting additional environment variables in your `.env` file: + +- `GETH_GC_MODE`: The garbage collection mode for Geth. Set to `archive` (default) to keep all historical state, or `full` to enable pruning and save disk space. + +If you need to add more flags to `blast-geth` or `op-node`, you can modify the `command` section in the `docker-compose.yml` file directly. + +## Contributing + +We welcome community contributions! If you have successfully deployed a node with a custom configuration or have discovered best practices, please share your experience by opening an issue or a pull request. + ## Advanced usage If you have custom deployment requirements, you may need to build the node software yourself. See [here](https://safe-violet-16b.notion.site/Blast-Deployment-Docs-b2f2b7b3c9a645fe8d6ce49fb963a467) for additional instructions. diff --git a/docker-compose.yml b/docker-compose.yml index aca29b0..a532898 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -49,7 +49,7 @@ services: --authrpc.vhosts="*" --authrpc.jwtsecret=/blast/jwt.txt --syncmode=full - --gcmode=archive + --gcmode=${GETH_GC_MODE:-archive} --nodiscover --maxpeers=0 --rollup.disabletxpoolgossip=true