@@ -23,6 +23,8 @@ test('loadConfig provides a complete local configuration', () => {
2323 assert . equal ( config . l1SlashLogStartBlock , undefined ) ;
2424 assert . equal ( config . l1SlashLogLookbackBlocks , 50_000 ) ;
2525 assert . equal ( config . l1SlashLogChunkSize , 1_000 ) ;
26+ assert . equal ( config . l1SlashLogProviderTimeoutMs , 30_000 ) ;
27+ assert . equal ( config . l1SlashLogMaxRunMs , 60_000 ) ;
2628 assert . equal ( config . sentinelPollIntervalMs , 60_000 ) ;
2729 assert . equal ( config . sentinelLookbackEpochs , 3 ) ;
2830 assert . equal ( config . sentinelEpochEndBufferSlots , 2 ) ;
@@ -90,6 +92,10 @@ test('operator-facing URLs and process settings are validated', () => {
9092 ( ) => loadConfig ( { L1_SLASH_LOG_START_BLOCK : '-1' } ) ,
9193 / b e t w e e n 0 a n d 1 0 0 0 0 0 0 0 0 0 / ,
9294 ) ;
95+ assert . throws (
96+ ( ) => loadConfig ( { L1_SLASH_LOG_PROVIDER_TIMEOUT_MS : '45001' } ) ,
97+ / b e t w e e n 5 0 0 0 a n d 4 5 0 0 0 / ,
98+ ) ;
9399 assert . throws ( ( ) => loadConfig ( { BACKEND_TRUST_PROXY : 'yes' } ) , / m u s t b e t r u e o r f a l s e / ) ;
94100 assert . throws ( ( ) => loadConfig ( { BACKEND_LOG_LEVEL : 'trace' } ) , / d e b u g , i n f o , w a r n , o r e r r o r / ) ;
95101
@@ -99,6 +105,7 @@ test('operator-facing URLs and process settings are validated', () => {
99105 L1_RPC_URL : 'https://rpc-one.example/path' ,
100106 L1_SLASH_LOG_START_BLOCK : '25533241' ,
101107 L1_SLASH_LOG_LOOKBACK_BLOCKS : '75000' ,
108+ L1_SLASH_LOG_PROVIDER_TIMEOUT_MS : '40000' ,
102109 BACKEND_DATABASE_PATH : '../state/slashmon.sqlite' ,
103110 BACKEND_PORT : '9000' ,
104111 BACKEND_TRUST_PROXY : 'true' ,
@@ -111,6 +118,7 @@ test('operator-facing URLs and process settings are validated', () => {
111118 assert . deepEqual ( config . l1RpcUrls , [ 'https://rpc-one.example/path' ] ) ;
112119 assert . equal ( config . l1SlashLogStartBlock , 25_533_241 ) ;
113120 assert . equal ( config . l1SlashLogLookbackBlocks , 75_000 ) ;
121+ assert . equal ( config . l1SlashLogProviderTimeoutMs , 40_000 ) ;
114122 assert . equal ( config . databasePath , '/srv/state/slashmon.sqlite' ) ;
115123 assert . equal ( config . port , 9000 ) ;
116124 assert . equal ( config . trustLoopbackProxy , true ) ;
0 commit comments