From 493f6e8acee5fc97714cfa7701e0346d76a5c40e Mon Sep 17 00:00:00 2001 From: RogerLamTd Date: Thu, 9 Apr 2026 16:02:49 -0700 Subject: [PATCH] chore(docker): remove prover profile --- .env.sample | 54 +-------- .env.sample.hoodi | 3 +- .github/workflows/repo--validate-pr-title.yml | 4 +- docker-compose.yml | 22 ---- script/start-prover-relayer.sh | 105 ------------------ 5 files changed, 3 insertions(+), 185 deletions(-) delete mode 100755 script/start-prover-relayer.sh diff --git a/.env.sample b/.env.sample index 15f11d5d..d31bb31f 100644 --- a/.env.sample +++ b/.env.sample @@ -10,10 +10,9 @@ PORT_L2_EXECUTION_ENGINE_HTTP=8547 PORT_L2_EXECUTION_ENGINE_WS=8548 PORT_L2_EXECUTION_ENGINE_METRICS=6060 PORT_L2_EXECUTION_ENGINE_P2P=30306 -PORT_PROVER_SERVER=9876 PORT_PROMETHEUS=9091 PORT_GRAFANA=3001 -# Comma-separated profiles to be used by default (l2_execution_engine,prover) +# Comma-separated profiles to be used by default (l2_execution_engine) # Proposer is deprecated for community as of Based Preconfs, so profile has been removed. COMPOSE_PROFILES=l2_execution_engine @@ -67,54 +66,3 @@ L1_ENDPOINT_WS= L1_BEACON_HTTP= # You may choose to use a third party blob server service or host your own blob server if you do not use a semi-supernode. BLOB_SERVER_URL= - -############################### OPTIONAL ##################################### -# If you want to be a prover who generates and submits zero knowledge proofs of proposed L2 blocks, you need to change -# `ENABLE_PROVER` to true and set `L1_PROVER_PRIVATE_KEY`. -ENABLE_PROVER=false -# SGX Raiko service endpoint, required if not running a guardian prover. -SGX_RAIKO_HOST= -# A L1 account private key (with a balance of TAIKO deposited on TaikoL1) which will be used to sign the bond for proving the block. -# WARNING: only use a test account, pasting your private key in plain text here is not secure. -L1_PROVER_PRIVATE_KEY= -# Amount to approve TaikoL1 contracts for TaikoToken usage. i.e 250 TAIKO = 250 -TOKEN_ALLOWANCE= -# Whether to prove unassigned blocks or not (blocks that have expired their proof window -# without the original prover submitting a proof.). -PROVE_UNASSIGNED_BLOCKS=false -# The size of batch sgx proofs. If set to 1, submits proof upon assignment, if x>1, submits a batch of proofs when x number of blocks are assigned. -# Setting this value to a number greater than 1 means you are enabling the proof aggregation functionality, please consult our documentation to understand the risks before doing so. -SGX_BATCH_SIZE=1 -# The size of batch zkvm proofs. If set to 1, submits proof upon assignment, if x>1, submits a batch of proofs when x number of blocks are assigned. -# Setting this value to a number greater than 1 means you are enabling the proof aggregation functionality, please consult our documentation to understand the risks before doing so. -ZKVM_BATCH_SIZE=1 -# Time interval to prove blocks, even if the number of pending proofs does not exceed the batchSize, this flag only works when the proof aggregation is enabled. -# We recommend that this value is set no greater than 45min, default is 30min. Ex: 30m0s -FORCE_BATCH_PROVING_INTERVAL= -# Time interval to poll proofs from raiko host. -PROOF_POLLING_INTERVAL= - -# Transaction Manager Flags (Leave blank if using default values.) These only affect Prover. - -# The multiplier applied to fee suggestions to put a hard limit on fee increases -TX_FEE_LIMIT_MULTIPLIER= -# The minimum threshold (in GWei) at which fee bumping starts to be capped. Allows arbitrary fee bumps below this threshold. -TX_FEE_LIMIT_THRESHOLD= -# Gas limit will be used for transactions (0 means using gas estimation) -TX_GAS_LIMIT=3000000 -# Enforces a minimum base fee (in GWei) to assume when determining tx fees. 1 GWei by default -TX_MIN_BASEFEE= -# Enforces a minimum tip cap (in GWei) to use when determining tx fees. 1 GWei by default. -TX_MIN_TIP_CAP= -# Timeout for aborting a tx send if the tx does not make it to the mempool. -TX_NOT_IN_MEMPOOL_TIMEOUT= -# Number of confirmations which we will wait after sending a transaction -TX_NUM_CONFIRMATIONS= -# Frequency to poll for receipts -TX_RECEIPT_QUERY_INTERVAL= -# Duration we will wait before resubmitting a transaction to L1. Ex: 2s for 2 seconds -TX_RESUBMISSION= -# Number of ErrNonceTooLow observations required to give up on a tx at a particular nonce without receiving confirmation -TX_SAFE_ABORT_NONCE_TOO_LOW= -# Timeout for sending transactions. If 0 it is disabled. -TX_SEND_TIMEOUT= diff --git a/.env.sample.hoodi b/.env.sample.hoodi index 98c2b542..9611787a 100644 --- a/.env.sample.hoodi +++ b/.env.sample.hoodi @@ -10,10 +10,9 @@ PORT_L2_EXECUTION_ENGINE_HTTP=8547 PORT_L2_EXECUTION_ENGINE_WS=8548 PORT_L2_EXECUTION_ENGINE_METRICS=6060 PORT_L2_EXECUTION_ENGINE_P2P=30306 -PORT_PROVER_SERVER=9876 PORT_PROMETHEUS=9091 PORT_GRAFANA=3001 -# Comma-separated profiles to be used by default (l2_execution_engine,prover) +# Comma-separated profiles to be used by default (l2_execution_engine) # Proposer is deprecated for community as of Based Preconfs, so profile has been removed. COMPOSE_PROFILES=l2_execution_engine diff --git a/.github/workflows/repo--validate-pr-title.yml b/.github/workflows/repo--validate-pr-title.yml index e6073bfc..ffdea761 100644 --- a/.github/workflows/repo--validate-pr-title.yml +++ b/.github/workflows/repo--validate-pr-title.yml @@ -2,7 +2,7 @@ name: "Lint PR" on: pull_request_target: - types: + types: - opened - edited - synchronize @@ -29,8 +29,6 @@ jobs: main deps deps-dev - prover - proposer driver env docker diff --git a/docker-compose.yml b/docker-compose.yml index 3c4aa346..4fe10dab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,7 +47,6 @@ services: <<: *logging profiles: - l2_execution_engine - - prover taiko_client_driver: image: us-docker.pkg.dev/evmchain/images/taiko-client:taiko-alethia-client-v2.3.0 @@ -69,25 +68,6 @@ services: <<: *logging profiles: - l2_execution_engine - - prover - - taiko_client_prover_relayer: - image: us-docker.pkg.dev/evmchain/images/taiko-client:taiko-alethia-client-v2.3.0 - restart: unless-stopped - pull_policy: always - ports: - - "${PORT_PROVER_SERVER}:9876" - env_file: - - .env - volumes: - - ./script:/script - entrypoint: - - /bin/sh - - -c - - "/script/start-prover-relayer.sh" - <<: *logging - profiles: - - prover prometheus: image: prom/prometheus:latest @@ -103,7 +83,6 @@ services: <<: *logging profiles: - l2_execution_engine - - prover grafana: image: grafana/grafana:latest @@ -121,7 +100,6 @@ services: <<: *logging profiles: - l2_execution_engine - - prover volumes: l2_execution_engine_data: diff --git a/script/start-prover-relayer.sh b/script/start-prover-relayer.sh deleted file mode 100755 index fea11ed0..00000000 --- a/script/start-prover-relayer.sh +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/sh - -set -eou pipefail - -if [ "$ENABLE_PROVER" = "true" ]; then - ARGS="--l1.ws ${L1_ENDPOINT_WS} - --l2.ws ws://l2_execution_engine:8546 - --l2.http http://l2_execution_engine:8545 - --l2.auth http://l2_execution_engine:8551 - --jwtSecret /data/taiko-geth/geth/jwtsecret - --pacayaInbox ${TAIKO_INBOX_ADDRESS} - --shastaInbox ${SHASTA_INBOX_ADDRESS} - --shasta.time ${TAIKO_INTERNAL_SHASTA_TIME} - --taikoAnchor ${TAIKO_ANCHOR_ADDRESS} - --taikoToken ${TAIKO_TOKEN_L1_ADDRESS} - --l1.proverPrivKey ${L1_PROVER_PRIVATE_KEY} - --raiko.host ${SGX_RAIKO_HOST} - --prover.sgx.batchSize ${SGX_BATCH_SIZE} - --prover.zkvm.batchSize ${ZKVM_BATCH_SIZE}" - - if [ -z "$SGX_RAIKO_HOST" ]; then - echo "Error: SGX_RAIKO_HOST must be non-empty" - exit 1 - fi - - if [ -z "$L1_ENDPOINT_WS" ]; then - echo "Error: L1_ENDPOINT_WS must be non-empty" - exit 1 - fi - - if [ -z "$L1_PROVER_PRIVATE_KEY" ]; then - echo "Error: L1_PROVER_PRIVATE_KEY must be non-empty" - exit 1 - fi - - if [ -n "$TOKEN_ALLOWANCE" ]; then - ARGS="${ARGS} --prover.allowance ${TOKEN_ALLOWANCE}" - fi - - if [ "$PROVE_UNASSIGNED_BLOCKS" = "true" ]; then - ARGS="${ARGS} --prover.proveUnassignedBlocks" - fi - - if [ -n "$SGX_BATCH_SIZE" ]; then - ARGS="${ARGS} --prover.sgx.batchSize ${SGX_BATCH_SIZE}" - fi - - if [ -n "$FORCE_BATCH_PROVING_INTERVAL" ]; then - ARGS="${ARGS} --prover.forceBatchProvingInterval ${FORCE_BATCH_PROVING_INTERVAL}" - fi - - # TXMGR Settings - if [ -n "$TX_FEE_LIMIT_MULTIPLIER" ]; then - ARGS="${ARGS} --tx.feeLimitMultiplier ${TX_FEE_LIMIT_MULTIPLIER}" - fi - - if [ -n "$TX_FEE_LIMIT_THRESHOLD" ]; then - ARGS="${ARGS} --tx.feeLimitThreshold ${TX_FEE_LIMIT_THRESHOLD}" - fi - - if [ -n "$TX_GAS_LIMIT" ]; then - ARGS="${ARGS} --tx.gasLimit ${TX_GAS_LIMIT}" - fi - - if [ -n "$TX_MIN_BASEFEE" ]; then - ARGS="${ARGS} --tx.minBaseFee ${TX_MIN_BASEFEE}" - fi - - if [ -n "$TX_MIN_TIP_CAP" ]; then - ARGS="${ARGS} --tx.minTipCap ${TX_MIN_TIP_CAP}" - fi - - if [ -n "$TX_NOT_IN_MEMPOOL_TIMEOUT" ]; then - ARGS="${ARGS} --tx.notInMempoolTimeout ${TX_NOT_IN_MEMPOOL_TIMEOUT}" - fi - - if [ -n "$TX_NUM_CONFIRMATIONS" ]; then - ARGS="${ARGS} --tx.numConfirmations ${TX_NUM_CONFIRMATIONS}" - fi - - if [ -n "$TX_RECEIPT_QUERY_INTERVAL" ]; then - ARGS="${ARGS} --tx.receiptQueryInterval ${TX_RECEIPT_QUERY_INTERVAL}" - fi - - if [ -n "$TX_RESUBMISSION" ]; then - ARGS="${ARGS} --tx.resubmissionTimeout ${TX_RESUBMISSION}" - fi - - if [ -n "$TX_SAFE_ABORT_NONCE_TOO_LOW" ]; then - ARGS="${ARGS} --tx.safeAbortNonceTooLowCount ${TX_SAFE_ABORT_NONCE_TOO_LOW}" - fi - - if [ -n "$TX_SEND_TIMEOUT" ]; then - ARGS="${ARGS} --tx.sendTimeout ${TX_SEND_TIMEOUT}" - fi - - if [ -n "$PROOF_POLLING_INTERVAL" ]; then - ARGS="${ARGS} --prover.proofPollingInterval ${PROOF_POLLING_INTERVAL}" - fi - - exec taiko-client prover ${ARGS} -else - echo "PROVER IS DISABLED" - sleep infinity -fi