@@ -227,13 +227,17 @@ pub struct EnvVars {
227227 /// If not specified, the graphman server will not start.
228228 pub graphman_server_auth_token : Option < String > ,
229229
230- /// If enabled for a chain, requires providers to support extended block details.
230+ /// By default, all providers are required to support extended block details,
231+ /// as this is the safest option for a graph-node operator.
231232 ///
232- /// Providers that do not support extended block details for enabled chains are
233- /// considered invalid and will not be used.
233+ /// Providers that do not support extended block details for enabled chains
234+ /// are considered invalid and will not be used.
234235 ///
235- /// Defaults to an empty list;
236- pub firehose_require_extended_blocks_for_chains : Vec < String > ,
236+ /// To disable checks for one or more chains, simply specify their names
237+ /// in this configuration option.
238+ ///
239+ /// Defaults to an empty list, which means that this feature is enabled for all chains;
240+ pub firehose_disable_extended_blocks_for_chains : Vec < String > ,
237241}
238242
239243impl EnvVars {
@@ -319,9 +323,9 @@ impl EnvVars {
319323 genesis_validation_enabled : inner. genesis_validation_enabled . 0 ,
320324 genesis_validation_timeout : Duration :: from_secs ( inner. genesis_validation_timeout ) ,
321325 graphman_server_auth_token : inner. graphman_server_auth_token ,
322- firehose_require_extended_blocks_for_chains :
323- Self :: firehose_require_extended_blocks_for_chains (
324- inner. firehose_require_extended_blocks_for_chains ,
326+ firehose_disable_extended_blocks_for_chains :
327+ Self :: firehose_disable_extended_blocks_for_chains (
328+ inner. firehose_disable_extended_blocks_for_chains ,
325329 ) ,
326330 } )
327331 }
@@ -348,7 +352,7 @@ impl EnvVars {
348352 self . log_query_timing_contains ( "cache" ) && self . log_gql_timing ( )
349353 }
350354
351- fn firehose_require_extended_blocks_for_chains ( s : Option < String > ) -> Vec < String > {
355+ fn firehose_disable_extended_blocks_for_chains ( s : Option < String > ) -> Vec < String > {
352356 s. unwrap_or_default ( )
353357 . split ( "," )
354358 . map ( |x| x. trim ( ) . to_string ( ) )
@@ -482,8 +486,8 @@ struct Inner {
482486 genesis_validation_timeout : u64 ,
483487 #[ envconfig( from = "GRAPHMAN_SERVER_AUTH_TOKEN" ) ]
484488 graphman_server_auth_token : Option < String > ,
485- #[ envconfig( from = "GRAPH_NODE_FIREHOSE_REQUIRE_EXTENDED_BLOCKS_FOR_CHAINS " ) ]
486- firehose_require_extended_blocks_for_chains : Option < String > ,
489+ #[ envconfig( from = "GRAPH_NODE_FIREHOSE_DISABLE_EXTENDED_BLOCKS_FOR_CHAINS " ) ]
490+ firehose_disable_extended_blocks_for_chains : Option < String > ,
487491}
488492
489493#[ derive( Clone , Debug ) ]
0 commit comments