Skip to content
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
4 changes: 2 additions & 2 deletions batcher/aligned-batcher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ impl Batcher {
}
}

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

/// Sends a transaction to Ethereum with the same nonce as the previous one to override it.
/// Retries on recoverable errors with exponential backoff.
/// Bumps the fee if not included in 3 blocks, using `calculate_bumped_gas_price`.
/// Bumps the fee if not included in 6 blocks, using `calculate_bumped_gas_price`.
/// In the first 5 attemps, bumps the fee every 3 blocks. Then exponential backoff takes over.
/// After 2 hours (attempt 13), retries occur hourly for 1 day (33 retries).
pub async fn cancel_create_new_task_tx(&self, old_tx_gas_price: U256) {
Expand Down
2 changes: 1 addition & 1 deletion config-files/config-batcher-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ecdsa:
batcher:
block_interval: 3
batch_size_interval: 10
transaction_wait_timeout: 36000 # 3 blocks
transaction_wait_timeout: 96000 # 8 blocks
max_proof_size: 67108864 # 64 MiB
max_batch_byte_size: 268435456 # 256 MiB
max_batch_proof_qty: 3000 # 3000 proofs in a batch
Expand Down
2 changes: 1 addition & 1 deletion config-files/config-batcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ecdsa:
batcher:
block_interval: 3
batch_size_interval: 10
transaction_wait_timeout: 36000 # 3 blocks
transaction_wait_timeout: 96000 # 8 blocks
max_proof_size: 67108864 # 64 MiB
max_batch_byte_size: 268435456 # 256 MiB
max_batch_proof_qty: 3000 # 3000 proofs in a batch
Expand Down
Loading