From 8ba42aa089d356ea61f882f9dfc2a0091bde2476 Mon Sep 17 00:00:00 2001 From: jeff <113397187+cyberhorsey@users.noreply.github.com> Date: Mon, 24 Jul 2023 00:17:21 -0700 Subject: [PATCH] feat(proposer): proposer can only propose local transactions (#91) --- .env.sample | 1 + .env.sample.l3 | 1 + script/l2/start-proposer.sh | 1 + script/l3/start-proposer.sh | 1 + 4 files changed, 4 insertions(+) diff --git a/.env.sample b/.env.sample index 7bddba6..92ff3fe 100644 --- a/.env.sample +++ b/.env.sample @@ -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 diff --git a/.env.sample.l3 b/.env.sample.l3 index 87777d9..36ca482 100644 --- a/.env.sample.l3 +++ b/.env.sample.l3 @@ -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 \ No newline at end of file diff --git a/script/l2/start-proposer.sh b/script/l2/start-proposer.sh index 0eb1bee..ffab1a2 100755 --- a/script/l2/start-proposer.sh +++ b/script/l2/start-proposer.sh @@ -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 diff --git a/script/l3/start-proposer.sh b/script/l3/start-proposer.sh index 5492de8..23966e3 100755 --- a/script/l3/start-proposer.sh +++ b/script/l3/start-proposer.sh @@ -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