Skip to content

Commit

Permalink
Renaming block type flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBger committed Apr 25, 2024
1 parent c25968e commit 4298312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/apps/substreams_tier1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4298312

Please sign in to comment.