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
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ CUSTOM_CHAINS_CONFIG_PATH=# optional
DEFAULT_USER_OPS_BATCH_GAS_LIMIT=# default: 8_000_000
DEFAULT_NUM_SIMULATOR_WORKERS_PER_CHAIN=# default: 1
DEFAULT_SIMULATOR_WORKER_CONCURRENCY=# default: 10
DEFAULT_SIMULATOR_TRACE_CALL_RETRY_DELAY=# default: 75 milliseconds
DEFAULT_SIMULATOR_TRACE_CALL_RETRY_DELAY=# default: 1000 milliseconds

DEFAULT_SIMULATOR_STALLED_JOBS_RETRY_INTERVAL=# default: 1 second
DEFAULT_SIMULATOR_RATE_LIMIT_MAX_REQUESTS_PER_INTERVAL=# default: 100
DEFAULT_SIMULATOR_RATE_LIMIT_DURATION=# default: 1

DEFAULT_EXECUTOR_STALLED_JOBS_RETRY_INTERVAL=# default: 1 second
DEFAULT_EXECUTOR_STALLED_JOBS_RETRY_INTERVAL=# default: 2 second
DEFAULT_EXECUTOR_RATE_LIMIT_MAX_REQUESTS_PER_INTERVAL=# default: 100
DEFAULT_EXECUTOR_RATE_LIMIT_DURATION=# default: 1

Expand All @@ -34,7 +34,7 @@ REDIS_PORT=# default: 6379
## executor
EXECUTOR_QUEUE_JOB_ATTEMPTS=# default: 3
EXECUTOR_QUEUE_JOB_BACKOFF_TYPE=# default: fixed, options: fixed|exponential
EXECUTOR_QUEUE_JOB_BACKOFF_DELAY=# default: 75 milliseconds
EXECUTOR_QUEUE_JOB_BACKOFF_DELAY=# default: 1000 milliseconds

## health check
INITIAL_HEALTH_CHECK_DELAY=# default: 1
Expand All @@ -54,7 +54,7 @@ ORACLE_PRICE_FEED_TTL=# default: 60 (seconds)
## simulator
SIMULATOR_QUEUE_JOB_ATTEMPTS=# default: 10
SIMULATOR_QUEUE_JOB_BACKOFF_TYPE=# default: fixed, options: fixed|exponential
SIMULATOR_QUEUE_JOB_BACKOFF_DELAY=# default: 75 milliseconds
SIMULATOR_QUEUE_JOB_BACKOFF_DELAY=# default: 1000 milliseconds

## workers
NUM_CLUSTER_WORKERS=# default: 1
Expand Down
4 changes: 2 additions & 2 deletions src/modules/chains/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export const CHAIN_CONFIG_DEFAULTS = {
simulator: {
stalledJobsRetryInterval: parseSeconds(
process.env.DEFAULT_SIMULATOR_STALLED_JOBS_RETRY_INTERVAL,
1,
2,
{
min: 1,
max: 10,
Expand Down Expand Up @@ -346,7 +346,7 @@ export const CHAIN_CONFIG_DEFAULTS = {
),
traceCallRetryDelay: parseNum(
process.env.DEFAULT_SIMULATOR_TRACE_CALL_RETRY_DELAY,
75,
1000,
{
min: 75,
},
Expand Down
2 changes: 1 addition & 1 deletion src/modules/chains/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const chainConfigSchemaBase = z.object({
rateLimitDuration: z
.number()
.default(CHAIN_CONFIG_DEFAULTS.executor.rateLimitDuration),
pollInterval: z.number().default(250), // 250 milliseconds,
pollInterval: z.number().default(1000), // 1000 milliseconds,
})
.default({}),
simulator: z
Expand Down
2 changes: 1 addition & 1 deletion src/modules/executor/executor.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const executorConfig = registerConfigAs<{
process.env.EXECUTOR_QUEUE_JOB_BACKOFF_TYPE,
"fixed",
),
delay: parseNum(process.env.EXECUTOR_QUEUE_JOB_BACKOFF_DELAY, 75, {
delay: parseNum(process.env.EXECUTOR_QUEUE_JOB_BACKOFF_DELAY, 1000, {
min: 75,
}),
},
Expand Down
2 changes: 1 addition & 1 deletion src/modules/simulator/simulator.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const simulatorConfig = registerConfigAs<{
process.env.SIMULATOR_QUEUE_JOB_BACKOFF_TYPE,
"fixed",
),
delay: parseNum(process.env.SIMULATOR_QUEUE_JOB_BACKOFF_DELAY, 75, {
delay: parseNum(process.env.SIMULATOR_QUEUE_JOB_BACKOFF_DELAY, 1000, {
min: 75,
}),
},
Expand Down
2 changes: 1 addition & 1 deletion src/modules/simulator/simulator.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class SimulatorProcessor implements Processor<SimulatorJob> {
const { chainId } = this.chainsService;

// Custom user defined retry delay for long standing transactions if specified
const retryDelay = meeUserOp.executionSimulationRetryDelay || 75;
const retryDelay = meeUserOp.executionSimulationRetryDelay || 250; // 250 milliseconds

// Updating userOp in background to improve latency
this.storageService.createUserOpCustomField(
Expand Down