Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(prover,proposer): script and env improvements #355

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ TX_NOT_IN_MEMPOOL_TIMEOUT=
TX_NUM_CONFIRMATIONS=
# Frequency to poll for receipts
TX_RECEIPT_QUERY_INTERVAL=
# Duration we will wait before resubmitting a transaction to L1
# Duration we will wait before resubmitting a transaction to L1. Ex: 2s for 2 seconds
TX_RESUBMISSION=
# Number of ErrNonceTooLow observations required to give up on a tx at a particular nonce without receiving confirmation
TX_SAFE_ABORT_NONCE_TOO_LOW=
Expand Down
4 changes: 2 additions & 2 deletions .env.sample.hekla
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ PROVE_UNASSIGNED_BLOCKS=false
# Setting this value to a number greater than 1 means you are enabling the proof aggregation functionality, please consult our documentation to understand the risks before doing so.
SGX_BATCH_SIZE=
# Time interval to prove blocks, even if the number of pending proofs does not exceed the batchSize, this flag only works when the proof aggregation is enabled.
# We recommend that this value is set no greater than 45min, default is 30min.
# We recommend that this value is set no greater than 45min, default is 30min. Ex: 30m0s
FORCE_BATCH_PROVING_INTERVAL=

# If you want to be a proposer who proposes L2 execution engine's transactions in mempool to Taiko L1 protocol
Expand Down Expand Up @@ -98,7 +98,7 @@ TX_NOT_IN_MEMPOOL_TIMEOUT=
TX_NUM_CONFIRMATIONS=
# Frequency to poll for receipts
TX_RECEIPT_QUERY_INTERVAL=
# Duration we will wait before resubmitting a transaction to L1
# Duration we will wait before resubmitting a transaction to L1. Ex: 2s for 2 seconds
TX_RESUBMISSION=
# Number of ErrNonceTooLow observations required to give up on a tx at a particular nonce without receiving confirmation
TX_SAFE_ABORT_NONCE_TOO_LOW=
Expand Down
4 changes: 2 additions & 2 deletions script/start-proposer-hekla.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ if [ "$ENABLE_PROPOSER" = "true" ]; then
ARGS="${ARGS} --tx.minTipCap ${TX_MIN_TIP_CAP}"
fi

if [ -n "$TX_NOT_IN_MEMPOOL" ]; then
ARGS="${ARGS} --tx.notInMempoolTimeout ${TX_NOT_IN_MEMPOOL}"
if [ -n "$TX_NOT_IN_MEMPOOL_TIMEOUT" ]; then
ARGS="${ARGS} --tx.notInMempoolTimeout ${TX_NOT_IN_MEMPOOL_TIMEOUT}"
fi

if [ -n "$TX_NUM_CONFIRMATIONS" ]; then
Expand Down
8 changes: 4 additions & 4 deletions script/start-proposer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ if [ "$ENABLE_PROPOSER" = "true" ]; then
ARGS="${ARGS} --tx.minTipCap ${TX_MIN_TIP_CAP}"
fi

if [ -n "$TX_NOT_IN_MEMPOOL" ]; then
ARGS="${ARGS} --tx.notInMempoolTimeout ${TX_NOT_IN_MEMPOOL}"
if [ -n "$TX_NOT_IN_MEMPOOL_TIMEOUT" ]; then
ARGS="${ARGS} --tx.notInMempoolTimeout ${TX_NOT_IN_MEMPOOL_TIMEOUT}"
fi

if [ -n "$TX_NUM_CONFIRMATIONS" ]; then
ARGS="${ARGS} --tx.numConfirmations ${TX_NUM_CONFIRMATIONS}"
fi

if [ -n "$TX_RECEIPT_QUERY" ]; then
ARGS="${ARGS} --tx.receiptQueryInterval ${TX_RECEIPT_QUERY}"
if [ -n "$TX_RECEIPT_QUERY_INTERVAL" ]; then
ARGS="${ARGS} --tx.receiptQueryInterval ${TX_RECEIPT_QUERY_INTERVAL}"
fi

if [ -n "$TX_RESUBMISSION" ]; then
Expand Down
8 changes: 4 additions & 4 deletions script/start-prover-relayer-hekla.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ if [ "$ENABLE_PROVER" = "true" ]; then
ARGS="${ARGS} --tx.minTipCap ${TX_MIN_TIP_CAP}"
fi

if [ -n "$TX_NOT_IN_MEMPOOL" ]; then
ARGS="${ARGS} --tx.notInMempoolTimeout ${TX_NOT_IN_MEMPOOL}"
if [ -n "$TX_NOT_IN_MEMPOOL_TIMEOUT" ]; then
ARGS="${ARGS} --tx.notInMempoolTimeout ${TX_NOT_IN_MEMPOOL_TIMEOUT}"
fi

if [ -n "$TX_NUM_CONFIRMATIONS" ]; then
ARGS="${ARGS} --tx.numConfirmations ${TX_NUM_CONFIRMATIONS}"
fi

if [ -n "$TX_RECEIPT_QUERY" ]; then
ARGS="${ARGS} --tx.receiptQueryInterval ${TX_RECEIPT_QUERY}"
if [ -n "$TX_RECEIPT_QUERY_INTERVAL" ]; then
ARGS="${ARGS} --tx.receiptQueryInterval ${TX_RECEIPT_QUERY_INTEERVAL}"
fi

if [ -n "$TX_RESUBMISSION" ]; then
Expand Down
8 changes: 4 additions & 4 deletions script/start-prover-relayer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,16 @@ if [ "$ENABLE_PROVER" = "true" ]; then
ARGS="${ARGS} --tx.minTipCap ${TX_MIN_TIP_CAP}"
fi

if [ -n "$TX_NOT_IN_MEMPOOL" ]; then
ARGS="${ARGS} --tx.notInMempoolTimeout ${TX_NOT_IN_MEMPOOL}"
if [ -n "$TX_NOT_IN_MEMPOOL_TIMEOUT" ]; then
ARGS="${ARGS} --tx.notInMempoolTimeout ${TX_NOT_IN_MEMPOOL_TIMEOUT}"
fi

if [ -n "$TX_NUM_CONFIRMATIONS" ]; then
ARGS="${ARGS} --tx.numConfirmations ${TX_NUM_CONFIRMATIONS}"
fi

if [ -n "$TX_RECEIPT_QUERY" ]; then
ARGS="${ARGS} --tx.receiptQueryInterval ${TX_RECEIPT_QUERY}"
if [ -n "$TX_RECEIPT_QUERY_INTERVAL" ]; then
ARGS="${ARGS} --tx.receiptQueryInterval ${TX_RECEIPT_QUERY_INTERVAL}"
fi

if [ -n "$TX_RESUBMISSION" ]; then
Expand Down
Loading