Skip to content

Commit

Permalink
feat(eldfell): add PROVE_UNASSIGNED_BLOCKS env (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Jul 18, 2023
1 parent 3a75489 commit 1d6e1cd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.sample.l3
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ L2_ENDPOINT_WS=
# If you want to be a prover who generates and submits zero knowledge proofs of proposed L3 blocks, you need to change
# `ENABLE_PROVER` to true and set `L2_PROVER_PRIVATE_KEY`.
ENABLE_PROVER=false
PROVE_UNASSIGNED_BLOCKS=true
# A L1 account (with balance) private key which will send the TaikoL1.proveBlock transactions.
L2_PROVER_PRIVATE_KEY=

Expand Down
18 changes: 17 additions & 1 deletion script/l3/start-prover-relayer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ if [ "$ENABLE_PROVER" == "true" ]; then

WAIT_HOSTS=zkevm-chain-prover-rpcd:${PORT_ZKEVM_CHAIN_PROVER_RPCD} WAIT_TIMEOUT=180 ./wait

taiko-client prover \
if [ "$ENABLE_PROVER" == "true" ]; then
taiko-client prover \
--l1.ws ${L2_ENDPOINT_WS} \
--l2.ws ws://l3_execution_engine:8546 \
--l1.http ${L2_ENDPOINT_HTTP} \
Expand All @@ -23,6 +24,21 @@ if [ "$ENABLE_PROVER" == "true" ]; then
--l1.proverPrivKey ${L2_PROVER_PRIVATE_KEY} \
--maxConcurrentProvingJobs 1 \
--prover.proveUnassignedBlocks
else
taiko-client prover \
--l1.ws ${L2_ENDPOINT_WS} \
--l2.ws ws://l3_execution_engine:8546 \
--l1.http ${L2_ENDPOINT_HTTP} \
--l2.http http://l3_execution_engine:8545 \
--taikoL1 ${TAIKO_L1_ADDRESS} \
--taikoL2 ${TAIKO_L2_ADDRESS} \
--taikoProverPoolL1 ${PROVER_POOL_ADDRESS} \
--zkevmRpcdEndpoint http://zkevm-chain-prover-rpcd:${PORT_ZKEVM_CHAIN_PROVER_RPCD} \
--zkevmRpcdParamsPath /data \
--l1.proverPrivKey ${L2_PROVER_PRIVATE_KEY} \
--maxConcurrentProvingJobs 1 \
--prover.proveUnassignedBlocks=false
fi
else
sleep infinity
fi

0 comments on commit 1d6e1cd

Please sign in to comment.