Skip to content

Commit c6f1213

Browse files
committed
chore(coprocessor): update poll-interval-ms default to 6s
Set default poll interval to 6000ms (half Ethereum block time) for more efficient polling without missing blocks.
1 parent 5063a10 commit c6f1213

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

charts/coprocessor/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ hostListenerPoller:
253253
### Polling and block processing parameters
254254
- --finality-lag=3
255255
- --batch-size=100 # Maximum number of blocks to process per iteration
256-
- --poll-interval-ms=1000 # Sleep duration between iterations in milliseconds
256+
- --poll-interval-ms=6000 # Sleep duration between iterations in milliseconds (half block time ~6s for Ethereum)
257257
- --retry-interval-ms=1000 # Backoff between retry attempts for RPC/DB failures in milliseconds
258258
- --max-http-retries=45 # Maximum number of HTTP/RPC retry attempts before failing an operation
259259
- --rpc-compute-units-per-second=1000 # Rate limiting budget for RPC calls during block catchup (compute units per second)

coprocessor/fhevm-engine/host-listener/src/bin/poller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct Args {
4949

5050
#[arg(
5151
long,
52-
default_value_t = 1000,
52+
default_value_t = 6000, // half block time ~6s for Ethereum
5353
help = "Sleep duration between iterations in milliseconds"
5454
)]
5555
poll_interval_ms: u64,

0 commit comments

Comments
 (0)