github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/cmd/fbchaind/fss/fss.go (about)

     1  package fss
     2  
     3  import (
     4  	"github.com/fibonacci-chain/fbc/libs/cosmos-sdk/server"
     5  	sdk "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types"
     6  	"github.com/fibonacci-chain/fbc/libs/iavl"
     7  	tmtypes "github.com/fibonacci-chain/fbc/libs/tendermint/types"
     8  	"github.com/spf13/cobra"
     9  )
    10  
    11  const (
    12  	flagDataDir = "data_dir"
    13  )
    14  
    15  func Command(ctx *server.Context) *cobra.Command {
    16  	iavl.SetLogger(ctx.Logger.With("module", "iavl"))
    17  	return fssCmd
    18  }
    19  
    20  var fssCmd = &cobra.Command{
    21  	Use:   "fss",
    22  	Short: "FSS is an auxiliary fast storage system to IAVL",
    23  	Long: `IAVL fast storage related commands:
    24  This command include a set of command of the IAVL fast storage.
    25  include create sub command`,
    26  }
    27  
    28  func init() {
    29  	fssCmd.PersistentFlags().StringP(flagDataDir, "d", "./", "The chain data file location")
    30  	fssCmd.PersistentFlags().String(sdk.FlagDBBackend, tmtypes.DBBackend, "Database backend: goleveldb | rocksdb")
    31  }