Skip to content

Commit

Permalink
feat(proposer): support epoch.minTip (#316)
Browse files Browse the repository at this point in the history
* support epoch.minTip

* use prover-set in prover
  • Loading branch information
RogerLamTd authored Jul 16, 2024
1 parent bc5a9d0 commit e8c1f9a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ L2_SUGGESTED_FEE_RECIPIENT=
BLOB_ALLOWED=true
# 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=
# Minimum Gas Tip for a transaction to accept for mempool (in wei).
TAIKO_MIN_TIP=
# Minimum tip (in GWei) for a transaction to propose.
EPOCH_MIN_TIP=
# ProverSet Address: We highly recommend you consult the deploy a proverset guide and use separate EOAs for prover and proposer to prevent nonce issues.
PROVER_SET=

Expand Down
2 changes: 2 additions & 0 deletions .env.sample.hekla
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ L2_SUGGESTED_FEE_RECIPIENT=
# If you keep this default value you must also enable a prover by setting ENABLE_PROVER=true.
# Whether to send EIP-4844 blob transactions when proposing blocks.
BLOB_ALLOWED=true
# Minimum tip (in GWei) for a transaction to propose.
EPOCH_MIN_TIP=
# ProverSet Address: We highly recommend you consult the deploy a proverset guide and use separate EOAs for prover and proposer to prevent nonce issues.
PROVER_SET=

Expand Down
4 changes: 4 additions & 0 deletions script/start-proposer-hekla.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ if [ "$ENABLE_PROPOSER" = "true" ]; then
echo "Error: L1_PROPOSER_PRIVATE_KEY must be non-empty"
exit 1
fi

if [ -n "$EPOCH_MIN_TIP" ]; then
ARGS="${ARGS} --epoch.minTip ${EPOCH_MIN_TIP}"
fi

if [ -n "$PROVER_SET" ]; then
ARGS="${ARGS} --proverSet ${PROVER_SET}"
Expand Down
4 changes: 4 additions & 0 deletions script/start-proposer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ if [ "$ENABLE_PROPOSER" = "true" ]; then
exit 1
fi

if [ -n "$EPOCH_MIN_TIP" ]; then
ARGS="${ARGS} --epoch.minTip ${EPOCH_MIN_TIP}"
fi

if [ -n "$PROVER_SET" ]; then
ARGS="${ARGS} --proverSet ${PROVER_SET}"
fi
Expand Down
4 changes: 4 additions & 0 deletions script/start-prover-relayer-hekla.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ if [ "$ENABLE_PROVER" = "true" ]; then
exit 1
fi

if [ -n "$PROVER_SET" ]; then
ARGS="${ARGS} --proverSet ${PROVER_SET}"
fi

if [ -n "$TOKEN_ALLOWANCE" ]; then
ARGS="${ARGS} --prover.allowance ${TOKEN_ALLOWANCE}"
fi
Expand Down
4 changes: 4 additions & 0 deletions script/start-prover-relayer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ if [ "$ENABLE_PROVER" = "true" ]; then
exit 1
fi

if [ -n "$PROVER_SET" ]; then
ARGS="${ARGS} --proverSet ${PROVER_SET}"
fi

if [ -n "$TOKEN_ALLOWANCE" ]; then
ARGS="${ARGS} --prover.allowance ${TOKEN_ALLOWANCE}"
fi
Expand Down

0 comments on commit e8c1f9a

Please sign in to comment.