Skip to content

Commit 84fadd2

Browse files
fix: adjust batcher transaction_wait_timeout (#1481)
Co-authored-by: Mauro Toscano <12560266+MauroToscano@users.noreply.github.com>
1 parent f17c152 commit 84fadd2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

batcher/aligned-batcher/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ impl Batcher {
14681468
}
14691469
}
14701470

1471-
/// Sends a `create_new_task` transaction to Ethereum and waits for a maximum of 3 blocks for the receipt.
1471+
/// Sends a `create_new_task` transaction to Ethereum and waits for a maximum of 8 blocks for the receipt.
14721472
/// Retries up to `ETHEREUM_CALL_MAX_RETRIES` times using exponential backoff on recoverable errors while trying to send the transaction:
14731473
/// (0,5 secs - 1 secs - 2 secs - 4 secs - 8 secs).
14741474
/// `ReceiptNotFoundError` is treated as non-recoverable, and the transaction will be canceled using `cancel_create_new_task_tx` in that case.
@@ -1519,7 +1519,7 @@ impl Batcher {
15191519

15201520
/// Sends a transaction to Ethereum with the same nonce as the previous one to override it.
15211521
/// Retries on recoverable errors with exponential backoff.
1522-
/// Bumps the fee if not included in 3 blocks, using `calculate_bumped_gas_price`.
1522+
/// Bumps the fee if not included in 6 blocks, using `calculate_bumped_gas_price`.
15231523
/// In the first 5 attemps, bumps the fee every 3 blocks. Then exponential backoff takes over.
15241524
/// After 2 hours (attempt 13), retries occur hourly for 1 day (33 retries).
15251525
pub async fn cancel_create_new_task_tx(&self, old_tx_gas_price: U256) {

config-files/config-batcher-docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ecdsa:
1818
batcher:
1919
block_interval: 3
2020
batch_size_interval: 10
21-
transaction_wait_timeout: 36000 # 3 blocks
21+
transaction_wait_timeout: 96000 # 8 blocks
2222
max_proof_size: 67108864 # 64 MiB
2323
max_batch_byte_size: 268435456 # 256 MiB
2424
max_batch_proof_qty: 3000 # 3000 proofs in a batch

config-files/config-batcher.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ecdsa:
1818
batcher:
1919
block_interval: 3
2020
batch_size_interval: 10
21-
transaction_wait_timeout: 36000 # 3 blocks
21+
transaction_wait_timeout: 96000 # 8 blocks
2222
max_proof_size: 67108864 # 64 MiB
2323
max_batch_byte_size: 268435456 # 256 MiB
2424
max_batch_proof_qty: 3000 # 3000 proofs in a batch

0 commit comments

Comments
 (0)