Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(prover): prover needs taikotoken address, and re-add prove unassigned blocks #131

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ BLOCK_PROPOSAL_FEE=1
# Comma-delineated list of prover endpoints proposer should query when attempting to propose a block
# If you keep this default value you must also enable a prover by setting ENABLE_PROVER=true
PROVER_ENDPOINTS=http://taiko_client_prover_relayer:9876
# 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

# Comma-delimited local tx pool addresses you want to prioritize, useful to set your proposer to only propose blocks with your prover's transactions
TXPOOL_LOCALS=
Expand Down
5 changes: 5 additions & 0 deletions script/start-prover-relayer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ if [ "$ENABLE_PROVER" == "true" ]; then
--l2.http http://l2_execution_engine:8545
--taikoL1 ${TAIKO_L1_ADDRESS}
--taikoL2 ${TAIKO_L2_ADDRESS}
--taikoToken ${TAIKO_TOKEN_L1_ADDRESS}
--zkevmRpcdEndpoint http://zkevm_chain_prover_rpcd:9000
--zkevmRpcdParamsPath /data
--l1.proverPrivKey ${L1_PROVER_PRIVATE_KEY}
Expand All @@ -27,6 +28,10 @@ if [ "$ENABLE_PROVER" == "true" ]; then
ARGS="${ARGS} --prover.proveBlockTxGasLimit ${PROVE_BLOCK_TX_GAS_LIMIT}"
fi

if [[ ! -z "$PROVE_UNASSIGNED_BLOCKS" ]]; then
ARGS="${ARGS} --prover.proveUnassignedBlocks"
fi

taiko-client prover ${ARGS}
else
sleep infinity
Expand Down