Skip to content

Commit

Permalink
fix block hashes tool
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Aug 19, 2024
1 parent c864f4e commit 249906b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions fireinjective/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func init() {

rootCmd.AddCommand(newFetchCmd(logger, tracer))
rootCmd.AddCommand(NewToolsFixUnknownTypeBlocks(logger, tracer))
rootCmd.AddCommand(NewToolsFixBlockHashes(logger, tracer))
}

func main() {
Expand Down
8 changes: 1 addition & 7 deletions fireinjective/tools_fix_block_hashes.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
// "github.com/cosmos/gogoproto/proto"
"github.com/spf13/cobra"
"github.com/streamingfast/bstream"
"github.com/streamingfast/cli"
"github.com/streamingfast/dstore"
firecore "github.com/streamingfast/firehose-core"
"github.com/streamingfast/logging"
Expand All @@ -21,12 +20,7 @@ import (

func NewToolsFixBlockHashes(logger *zap.Logger, tracer logging.Tracer) *cobra.Command {
cmd := &cobra.Command{
Use: "fix-unknown-type-blocks <first-streamable-block> <stop-block> <src-blocks-store> <dst-blocks-store>",
Short: "firecosmos tool to fix unknown type blocks",
Long: cli.Dedent(`
Firecosmos tool to fix unknown type blocks. This tool will read blocks from a source
and write the fixed block to a destination.
`),
Use: "fix-block-hashes <first-streamable-block> <stop-block> <src-blocks-store> <dst-blocks-store>",
Args: cobra.ExactArgs(4),
RunE: fixBlockHashesRunE(logger, tracer),
}
Expand Down

0 comments on commit 249906b

Please sign in to comment.