From 00cf71fd14b85569012c5f58f763e02e041f03ce Mon Sep 17 00:00:00 2001 From: Yukai Tu Date: Tue, 2 Apr 2024 00:24:32 +0700 Subject: [PATCH] enable full node syncing --- .env.mainnet | 1 - .env.sepolia | 2 -- geth-entrypoint | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.env.mainnet b/.env.mainnet index 6517490c..c6ea4cad 100644 --- a/.env.mainnet +++ b/.env.mainnet @@ -33,7 +33,6 @@ OP_NODE_RPC_PORT=8545 OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log OP_NODE_VERIFIER_L1_CONFS=4 OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS=true -OP_NODE_SYNCMODE=execution-layer # OP_NODE_L1_TRUST_RPC allows for faster syncing, but should be used *only* if your L1 RPC node # is fully trusted. It also allows op-node to work with clients such as Erigon that do not diff --git a/.env.sepolia b/.env.sepolia index 818abb7a..a74a0351 100644 --- a/.env.sepolia +++ b/.env.sepolia @@ -1,6 +1,5 @@ OP_GETH_GENESIS_FILE_PATH=sepolia/genesis-l2.json OP_GETH_SEQUENCER_HTTP=https://sepolia-sequencer.base.org -OP_GETH_BOOTNODES=enode://548f715f3fc388a7c917ba644a2f16270f1ede48a5d88a4d14ea287cc916068363f3092e39936f1a3e7885198bef0e5af951f1d7b1041ce8ba4010917777e71f@18.210.176.114:30301,enode://6f10052847a966a725c9f4adf6716f9141155b99a0fb487fea3f51498f4c2a2cb8d534e680ee678f9447db85b93ff7c74562762c3714783a7233ac448603b25f@107.21.251.55:30301 # [optional] used to enable geth stats: # OP_GETH_ETH_STATS=nodename:secret@host:port @@ -33,7 +32,6 @@ OP_NODE_RPC_PORT=8545 OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log OP_NODE_VERIFIER_L1_CONFS=4 OP_NODE_ROLLUP_LOAD_PROTOCOL_VERSIONS=true -OP_NODE_SYNCMODE=execution-layer # OP_NODE_L1_TRUST_RPC allows for faster syncing, but should be used *only* if your L1 RPC node # is fully trusted. It also allows op-node to work with clients such as Erigon that do not diff --git a/geth-entrypoint b/geth-entrypoint index ac5b61df..7efbfe3b 100755 --- a/geth-entrypoint +++ b/geth-entrypoint @@ -11,7 +11,7 @@ HOST_IP="0.0.0.0" P2P_PORT="${P2P_PORT:-30303}" ADDITIONAL_ARGS="" OP_GETH_GCMODE="${OP_GETH_GCMODE:-archive}" -OP_GETH_SYNCMODE="${OP_GETH_SYNCMODE:-snap}" +OP_GETH_SYNCMODE="${OP_GETH_SYNCMODE:-full}" if [[ -z "$OP_NODE_NETWORK" ]]; then echo "expected OP_NODE_NETWORK to be set" 1>&2