Skip to content

Commit

Permalink
feat(proposer): proposer can only propose local transactions (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey authored Jul 24, 2023
1 parent a62598d commit 8ba42aa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ L1_PROVER_PRIVATE_KEY=
ENABLE_PROPOSER=false
L1_PROPOSER_PRIVATE_KEY= # A L1 account (with balance) private key who will send TaikoL1.proposeBlock transactions
L2_SUGGESTED_FEE_RECIPIENT= # A L2 account address who will be the tx fee beneficiary of the L2 blocks that you proposed
TXPOOL_LOCALS_ONLY=false # Only propose local transactions, useful to set your proposer to only propose blocks with your prover's transactions
1 change: 1 addition & 0 deletions .env.sample.l3
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ L2_PROVER_PRIVATE_KEY=
ENABLE_PROPOSER=false
L2_PROPOSER_PRIVATE_KEY= # A L2 account (with balance) private key who will send TaikoL1.proposeBlock L2 transactions
L3_SUGGESTED_FEE_RECIPIENT= # A L3 account address who will be the tx fee beneficiary of the L2 blocks that you proposed
TXPOOL_LOCALS_ONLY=false # Only propose local transactions, useful to set your proposer to only propose blocks with your prover's transactions
1 change: 1 addition & 0 deletions script/l2/start-proposer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if [ "$ENABLE_PROPOSER" == "true" ]; then
--taikoL2 ${TAIKO_L2_ADDRESS} \
--l1.proposerPrivKey ${L1_PROPOSER_PRIVATE_KEY} \
--l2.suggestedFeeRecipient ${L2_SUGGESTED_FEE_RECIPIENT} \
--txpool.localsOnly ${TXPOOL_LOCALS_ONLY} \
--minimalBlockGasLimit "5000000"
else
sleep infinity
Expand Down
1 change: 1 addition & 0 deletions script/l3/start-proposer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if [ "$ENABLE_PROPOSER" == "true" ]; then
--taikoL2 ${TAIKO_L2_ADDRESS} \
--l1.proposerPrivKey ${L2_PROPOSER_PRIVATE_KEY} \
--l2.suggestedFeeRecipient ${L3_SUGGESTED_FEE_RECIPIENT} \
--txpool.localsOnly ${TXPOOL_LOCALS_ONLY} \
--minimalBlockGasLimit "5000000"
else
sleep infinity
Expand Down

0 comments on commit 8ba42aa

Please sign in to comment.