From 429831242b97a6f48c8c19fa3cda22d6509141f0 Mon Sep 17 00:00:00 2001 From: arnaudberger Date: Thu, 25 Apr 2024 09:47:57 -0400 Subject: [PATCH] Renaming block type flag --- cmd/apps/substreams_tier1.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/apps/substreams_tier1.go b/cmd/apps/substreams_tier1.go index 62e39c4..9441846 100644 --- a/cmd/apps/substreams_tier1.go +++ b/cmd/apps/substreams_tier1.go @@ -50,7 +50,7 @@ func RegisterSubstreamsTier1App[B firecore.Block](chain *firecore.Chain[B], root cmd.Flags().Bool("substreams-tier1-subrequests-insecure", false, "Connect to tier2 without checking certificate validity") cmd.Flags().Bool("substreams-tier1-subrequests-plaintext", true, "Connect to tier2 without client in plaintext mode") cmd.Flags().Int("substreams-tier1-max-subrequests", 4, "number of parallel subrequests that the tier1 can make to the tier2 per request") - cmd.Flags().String("block-type", "", "Block type to use for the substreams tier1 (Ex: sf.ethereum.type.v2.Block)") + cmd.Flags().String("substreams-tier1-block-type", "", "Block type to use for the substreams tier1 (Ex: sf.ethereum.type.v2.Block)") // all substreams registerCommonSubstreamsFlags(cmd) @@ -90,7 +90,7 @@ func RegisterSubstreamsTier1App[B firecore.Block](chain *firecore.Chain[B], root blockType = chain.DefaultBlockType } - blockTypeFromFlag := viper.GetString("block-type") + blockTypeFromFlag := viper.GetString("substreams-tier1-block-type") if blockTypeFromFlag != "" { blockType = blockTypeFromFlag