File tree Expand file tree Collapse file tree
aggregation_mode/proof_aggregator/src/backend Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use std::time::Duration;
88/// Backoff algorithm:
99/// - Starts with `delay = ETHEREUM_CALL_MIN_RETRY_DELAY`
1010/// - After each transient failure, sleeps for `delay` and then updates it following the next formula:
11- /// delay = min(delay * ETHEREUM_CALL_BACKOFF_FACTOR, ETHEREUM_CALL_MAX_RETRY_DELAY)
11+ /// delay = min(delay * ETHEREUM_CALL_BACKOFF_FACTOR, ETHEREUM_CALL_MAX_RETRY_DELAY)
1212/// - Stops retrying when the number of attempts exceed the `ETHEREUM_CALL_MAX_RETRIES` constant
1313///
1414/// About the retries limit: In the current implementation `attempt` starts at 0 and we stop when
@@ -34,7 +34,7 @@ use std::time::Duration;
3434/// 0.5 + 1 + 2 + 4 + 8 + 16 + 32 + 60 + 60 + 60 + 60
3535/// = 303.5 seconds (~5m 3.5s),
3636/// plus the execution time of each Ethereum call attempt.
37-
37+ ///
3838/// Minimum delay value (the one on first iteration)
3939pub const ETHEREUM_CALL_MIN_RETRY_DELAY : u64 = 500 ; // milliseconds
4040
You can’t perform that action at this time.
0 commit comments