Skip to content

Commit b497411

Browse files
authored
Support for reducing disk space requirements (#146)
* Update disk space requirements in README (fixes #133) * Add support for overriding the --state.scheme and --gcmode arguments * Fix missing quote
1 parent ec6a778 commit b497411

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This repository contains the relevant Docker builds to run your own node on the
3232
We recommend you have this configuration to run a node:
3333

3434
- at least 16 GB RAM
35-
- an SSD drive with at least 1 TB free
35+
- an SSD drive with at least 2 TB free
3636

3737
### Troubleshooting
3838

geth-entrypoint

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ METRICS_PORT="${METRICS_PORT:-6060}"
1010
HOST_IP="0.0.0.0"
1111
P2P_PORT="${P2P_PORT:-30303}"
1212
ADDITIONAL_ARGS=""
13+
OP_GETH_GCMODE="${OP_GETH_GCMODE:-archive}"
1314

1415
if [[ -z "$OP_NODE_NETWORK" ]]; then
1516
echo "expected OP_NODE_NETWORK to be set" 1>&2
@@ -28,6 +29,10 @@ if [ "${OP_GETH_ALLOW_UNPROTECTED_TXS+x}" = x ]; then
2829
ADDITIONAL_ARGS="$ADDITIONAL_ARGS --rpc.allow-unprotected-txs=$OP_GETH_ALLOW_UNPROTECTED_TXS"
2930
fi
3031

32+
if [ "${OP_GETH_STATE_SCHEME+x}" = x ]; then
33+
ADDITIONAL_ARGS="$ADDITIONAL_ARGS --state.scheme=$OP_GETH_STATE_SCHEME"
34+
fi
35+
3136
exec ./geth \
3237
--datadir="$GETH_DATA_DIR" \
3338
--verbosity="$VERBOSITY" \
@@ -50,12 +55,12 @@ exec ./geth \
5055
--metrics.addr=0.0.0.0 \
5156
--metrics.port="$METRICS_PORT" \
5257
--syncmode=full \
53-
--gcmode=archive \
58+
--gcmode="$OP_GETH_GCMODE" \
5459
--nodiscover \
5560
--maxpeers=100 \
5661
--nat=extip:$HOST_IP \
5762
--rollup.sequencerhttp="$OP_GETH_SEQUENCER_HTTP" \
5863
--rollup.halt=major \
59-
--op-network=$OP_NODE_NETWORK" \
64+
--op-network="$OP_NODE_NETWORK" \
6065
--port="$P2P_PORT" \
6166
$ADDITIONAL_ARGS # intentionally unquoted

0 commit comments

Comments
 (0)