From d9032f3f667887151c86f37a6483a535b2f409f6 Mon Sep 17 00:00:00 2001 From: Voss Date: Fri, 8 Dec 2023 21:14:51 -0600 Subject: [PATCH 1/2] seitch to WS engine communication update sequencer --- docker-compose.yml | 4 ++-- op-geth/entrypoint.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c197ef3..f5d854c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,9 +11,9 @@ services: environment: - EXTRA_FLAGS - P2P_PORT=33142 - - SYNCMODE=snap + - SYNCMODE=full - "HISTORICAL_RPC_URL=http://op-l2geth.dappnode:8545" - - "SEQUENCER_HTTP_URL=https://bedrock-beta-1-sequencer.optimism.io" + - "SEQUENCER_HTTP_URL=https://mainnet-sequencer.optimism.io/" image: "geth.op-geth.dnp.dappnode.eth:0.1.0" ports: - "33142:33142/tcp" diff --git a/op-geth/entrypoint.sh b/op-geth/entrypoint.sh index ed45f74..5c3f5ff 100755 --- a/op-geth/entrypoint.sh +++ b/op-geth/entrypoint.sh @@ -61,7 +61,7 @@ fi echo "[INFO - entrypoint] Starting Geth" exec geth --datadir $DATA_DIR \ --rollup.sequencerhttp $SEQUENCER_HTTP_URL \ - --rollup.disabletxpoolgossip \ + --rollup.disabletxpoolgossip true \ --ws \ --ws.port 8546 \ --ws.addr 0.0.0.0 \ @@ -79,5 +79,5 @@ exec geth --datadir $DATA_DIR \ --nodiscover \ --maxpeers 0 \ --syncmode full \ - --networkid=10 \ + --networkid 10 \ ${EXTRA_FLAGS} From e38470ed4ab492c03e4536c6c69420cba6460904 Mon Sep 17 00:00:00 2001 From: Voss Date: Tue, 5 Mar 2024 01:04:44 -0600 Subject: [PATCH 2/2] add WS and HTTP API flags --- op-geth/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/op-geth/entrypoint.sh b/op-geth/entrypoint.sh index 5c3f5ff..bea2f5f 100755 --- a/op-geth/entrypoint.sh +++ b/op-geth/entrypoint.sh @@ -7,7 +7,6 @@ PRELOADED_DATA_FILE=/mainnet-bedrock.tar.zst # Tx pool gossip is disabled as it is not supported yet # Max peers set to 0 to disable peer discovery (will be enabled in the future for snap sync) -# TODO: Should we add --http.api and --ws.api flags? if [ "$_DAPPNODE_GLOBAL_OP_ENABLE_HISTORICAL_RPC" = "true" ]; then @@ -66,11 +65,13 @@ exec geth --datadir $DATA_DIR \ --ws.port 8546 \ --ws.addr 0.0.0.0 \ --ws.origins "*" \ + --ws.api net,web3,txpool,eth,debug,engine \ --http \ --http.port 8545 \ --http.addr 0.0.0.0 \ --http.vhosts "*" \ --http.corsdomain "*" \ + --http.api web3,net,eth,engine,txpool,debug \ --authrpc.addr 0.0.0.0 \ --authrpc.port 8551 \ --authrpc.vhosts "*" \