File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -267,20 +267,25 @@ impl FromEnv for SlotCalculator {
267
267
268
268
fn inventory ( ) -> Vec < & ' static EnvItemInfo > {
269
269
vec ! [
270
+ & EnvItemInfo {
271
+ var: "CHAIN_NAME" ,
272
+ description: "The name of the chain. If set, the other environment variables are ignored." ,
273
+ optional: true ,
274
+ } ,
270
275
& EnvItemInfo {
271
276
var: "START_TIMESTAMP" ,
272
- description: "The start timestamp of the chain in seconds" ,
273
- optional: false ,
277
+ description: "The start timestamp of the chain in seconds. Required if CHAIN_NAME is not set. " ,
278
+ optional: true ,
274
279
} ,
275
280
& EnvItemInfo {
276
281
var: "SLOT_OFFSET" ,
277
- description: "The number of the slot containing the start timestamp" ,
278
- optional: false ,
282
+ description: "The number of the slot containing the start timestamp. Required if CHAIN_NAME is not set. " ,
283
+ optional: true ,
279
284
} ,
280
285
& EnvItemInfo {
281
286
var: "SLOT_DURATION" ,
282
- description: "The slot duration of the chain in seconds" ,
283
- optional: false ,
287
+ description: "The slot duration of the chain in seconds. Required if CHAIN_NAME is not set. " ,
288
+ optional: true ,
284
289
} ,
285
290
]
286
291
}
You can’t perform that action at this time.
0 commit comments