Skip to content

Commit

Permalink
feat(all): add default proposeBlockTxGasTipCap flag value for propo…
Browse files Browse the repository at this point in the history
…sers (#110)
  • Loading branch information
davidtaikocha authored Aug 6, 2023
1 parent 257ead9 commit 6b084e2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ L1_PROPOSER_PRIVATE_KEY=
L2_SUGGESTED_FEE_RECIPIENT=
# Gas limit for proposeBlock transactions
PROPOSE_BLOCK_TX_GAS_LIMIT=800000
PROPOSE_BLOCK_TX_GAS_TIP_CAP=10000000000

# 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
1 change: 1 addition & 0 deletions .env.sample.l3
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ L2_PROPOSER_PRIVATE_KEY=
L3_SUGGESTED_FEE_RECIPIENT=
# Gas limit for proposeBlock transactions
PROPOSE_BLOCK_TX_GAS_LIMIT=800000
PROPOSE_BLOCK_TX_GAS_TIP_CAP=50000000000

# 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
10 changes: 7 additions & 3 deletions script/l2/start-proposer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ set -eou pipefail

ARGS="--l1.ws ${L1_ENDPOINT_WS}
--l2.http http://l2_execution_engine:8545
--taikoL1 ${TAIKO_L1_ADDRESS}
--taikoL2 ${TAIKO_L2_ADDRESS}
--l1.proposerPrivKey ${L1_PROPOSER_PRIVATE_KEY}
--taikoL1 ${TAIKO_L1_ADDRESS}
--taikoL2 ${TAIKO_L2_ADDRESS}
--l1.proposerPrivKey ${L1_PROPOSER_PRIVATE_KEY}
--l2.suggestedFeeRecipient ${L2_SUGGESTED_FEE_RECIPIENT}
--minimalBlockGasLimit 5000000"

Expand All @@ -20,6 +20,10 @@ if [[ ! -z "$PROPOSE_BLOCK_TX_GAS_LIMIT" ]]; then
ARGS="${ARGS} --proposeBlockTxGasLimit ${PROPOSE_BLOCK_TX_GAS_LIMIT}"
fi

if [[ ! -z "$PROPOSE_BLOCK_TX_GAS_TIP_CAP" ]]; then
ARGS="${ARGS} --proposeBlockTxGasTipCap ${PROPOSE_BLOCK_TX_GAS_TIP_CAP}"
fi

if [ "$ENABLE_PROPOSER" == "true" ]; then
taiko-client proposer ${ARGS}
else
Expand Down
10 changes: 7 additions & 3 deletions script/l3/start-proposer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -eou pipefail

ARGS="--l1.ws ${L2_ENDPOINT_WS}
--l2.http http://l3_execution_engine:8545
--taikoL1 ${TAIKO_L1_ADDRESS}
--taikoL2 ${TAIKO_L2_ADDRESS}
--l1.proposerPrivKey ${L2_PROPOSER_PRIVATE_KEY}
--taikoL1 ${TAIKO_L1_ADDRESS}
--taikoL2 ${TAIKO_L2_ADDRESS}
--l1.proposerPrivKey ${L2_PROPOSER_PRIVATE_KEY}
--l2.suggestedFeeRecipient ${L3_SUGGESTED_FEE_RECIPIENT}
--minimalBlockGasLimit 5000000"

Expand All @@ -23,6 +23,10 @@ if [[ ! -z "$WAIT_RECEIPT_TIMEOUT" ]]; then
ARGS="${ARGS} --rpc.waitReceiptTimeout ${WAIT_RECEIPT_TIMEOUT}"
fi

if [[ ! -z "$PROPOSE_BLOCK_TX_GAS_TIP_CAP" ]]; then
ARGS="${ARGS} --proposeBlockTxGasTipCap ${PROPOSE_BLOCK_TX_GAS_TIP_CAP}"
fi

if [ "$ENABLE_PROPOSER" == "true" ]; then
taiko-client proposer ${ARGS}
else
Expand Down

0 comments on commit 6b084e2

Please sign in to comment.