Skip to content

Commit

Permalink
script and env improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
brachsterX committed Jan 21, 2025
1 parent 515b330 commit a48a793
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
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

0 comments on commit a48a793

Please sign in to comment.