File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -8,21 +8,28 @@ import type { OptionalField } from "./types/utils";
8
8
type ConfigWithOptionalServer = Omit < Config , "server" | "metrics" > & {
9
9
server ?: OptionalField <
10
10
ServerConfig ,
11
- "httpPort" | "httpHostV4" | "httpHostV6"
11
+ "httpPort" | "httpHostV4" | "httpHostV6" | "listenV4" | "listenV6"
12
+ > ;
13
+ metrics ?: OptionalField <
14
+ MetricsConfig ,
15
+ "port" | "hostV4" | "hostV6" | "listenV4" | "listenV6"
12
16
> ;
13
- metrics ?: OptionalField < MetricsConfig , "port" | "hostV4" | "hostV6" > ;
14
17
} ;
15
18
16
19
// Default config for metrics and server
17
20
const defaultServerConfig = {
18
21
httpPort : 4000 ,
19
22
httpHostV4 : "0.0.0.0" ,
20
23
httpHostV6 : "[::]" ,
24
+ listenV4 : true ,
25
+ listenV6 : true ,
21
26
} ;
22
27
const defaultMetricsCofnig = {
23
28
port : 4001 ,
24
29
hostV4 : "0.0.0.0" ,
25
30
hostV6 : "[::]" ,
31
+ listenV4 : true ,
32
+ listenV6 : true ,
26
33
} ;
27
34
28
35
/**
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ export interface Config {
16
16
admin ?: AdminConfig ;
17
17
}
18
18
export interface ServerConfig {
19
+ listenV4 : boolean ;
19
20
httpHostV4 : string ;
21
+ listenV6 : boolean ;
20
22
httpHostV6 : string ;
21
23
httpPort : number /* int */ ;
22
24
maxTimeout : string ;
@@ -122,7 +124,12 @@ export interface EvmUpstreamConfig {
122
124
nodeType : EvmNodeType ;
123
125
engine : string ;
124
126
getLogsMaxBlockRange : number /* int */ ;
125
- syncing : boolean ;
127
+ statePollerInterval : string ;
128
+ /**
129
+ * By default "Syncing" is marked as unknown (nil) and that means we will be retrying empty responses
130
+ * from such upstream, unless we explicitly know that the upstream is fully synced (false).
131
+ */
132
+ syncing ?: boolean ;
126
133
}
127
134
export interface FailsafeConfig {
128
135
retry ?: RetryPolicyConfig ;
@@ -217,7 +224,9 @@ export interface NetworkStrategyConfig {
217
224
}
218
225
export interface MetricsConfig {
219
226
enabled : boolean ;
227
+ listenV4 : boolean ;
220
228
hostV4 : string ;
229
+ listenV6 : boolean ;
221
230
hostV6 : string ;
222
231
port : number /* int */ ;
223
232
}
@@ -230,7 +239,6 @@ export const EvmNodeTypeFull: EvmNodeType = "full";
230
239
export const EvmNodeTypeArchive : EvmNodeType = "archive" ;
231
240
export const EvmNodeTypeSequencer : EvmNodeType = "sequencer" ;
232
241
export const EvmNodeTypeExecution : EvmNodeType = "execution" ;
233
- export type EvmBlockTracker = any ;
234
242
235
243
//////////
236
244
// source: network.go
You can’t perform that action at this time.
0 commit comments