Documentation ¶
Index ¶
- Constants
- Variables
- func AddCpuProfileCommandFlags(cmd *cobra.Command)
- func AddDefaultFlags(cmd *cobra.Command)
- func AddExportCommandFlags(cmd *cobra.Command)
- func AddIavlCommandFlags(cmd *cobra.Command)
- func AddInitCommandFlags(cmd *cobra.Command)
- func AddProfileRollbackCommandFlags(cmd *cobra.Command)
- func AddSealCommandFlags(cmd *cobra.Command)
- func AddStandaloneCommandFlags(cmd *cobra.Command)
- func AddStartCommandFlags(cmd *cobra.Command)
- func OpenDB(name string, config *Config) tmdb.DB
- func OpenDBextended(name string, home string, dbtype DbBackendType) tmdb.DB
- func StartCpuProfiler(config *Config) (func(), error)
- type ApiEnabledMask
- type CompositeService
- type Config
- func (c *Config) WithAbciServerGrpc() *Config
- func (c *Config) WithAbciServerRpc() *Config
- func (c *Config) WithAdminApi() *Config
- func (c *Config) WithBlockTime() *Config
- func (c *Config) WithBlocks() *Config
- func (c *Config) WithChainId() *Config
- func (c *Config) WithCpuProfile() *Config
- func (c *Config) WithDbBackend() *Config
- func (c *Config) WithGenesisConfig(genesisConfig rollup.Genesis) *Config
- func (c *Config) WithGenesisTime() *Config
- func (c *Config) WithHomeDir() *Config
- func (c *Config) WithIavlDisableFastNode() *Config
- func (c *Config) WithIavlLazyLoading() *Config
- func (c *Config) WithL1() *Config
- func (c *Config) WithLogger(logger Logger) *Config
- func (c *Config) WithOuput() *Config
- func (c *Config) WithOverride() *Config
- func (c *Config) WithPeptideCometServerRpc() *Config
- func (c *Config) WithPeptideEngineServerRpc() *Config
- func (c *Config) WithPprofRpc() *Config
- func (c *Config) WithPrometheusRetentionTime() *Config
- func (c *Config) WithRollbackBlocks() *Config
- func (c *Config) WithRollbackStore() *Config
- type DbBackendType
- type Endpoint
- type Logger
Constants ¶
View Source
const ( AppStateStore = "app" BlockStore = "block" TxStore = "tx" PayloadStore = "payload" )
View Source
const GoLevelDBBackend = cmdb.GoLevelDBBackend
Variables ¶
View Source
var ( DefaultNodeHome string SupportedDbBackendTypes = []string{ string(cmdb.GoLevelDBBackend), string(cmdb.CLevelDBBackend), string(cmdb.RocksDBBackend), string(cmdb.BadgerDBBackend), string(cmdb.BoltDBBackend), string(cmdb.MemDBBackend), } )
View Source
var DefaultLogger = func() Logger { return tmlog.NewTMLogger(tmlog.NewSyncWriter(os.Stdout)) }
Functions ¶
func AddDefaultFlags ¶
func AddExportCommandFlags ¶
func AddIavlCommandFlags ¶
func AddInitCommandFlags ¶
func AddSealCommandFlags ¶
func AddStartCommandFlags ¶
func OpenDBextended ¶
func OpenDBextended(name string, home string, dbtype DbBackendType) tmdb.DB
func StartCpuProfiler ¶
Types ¶
type ApiEnabledMask ¶
type ApiEnabledMask uint64
func EnableAllApis ¶
func EnableAllApis() ApiEnabledMask
func (ApiEnabledMask) IsAdminApiEnabled ¶
func (a ApiEnabledMask) IsAdminApiEnabled() bool
type CompositeService ¶
type CompositeService struct { service.BaseService // contains filtered or unexported fields }
func NewCompositeService ¶
func NewCompositeService(services ...service.Service) *CompositeService
NewCompositeService creates a new CompositeService with the given services.
func (*CompositeService) OnStart ¶
func (s *CompositeService) OnStart() error
try to start all services, if any fails, stop all already started services and return the error
type Config ¶
type Config struct { HomeDir string AbciServerRpc Endpoint AbciServerGrpc Endpoint PeptideCometServerRpc Endpoint PeptideEngineServerRpc Endpoint GenesisConfig rollup.Genesis GenesisTime time.Time CpuProfile string PprofRpc Endpoint DbBackend DbBackendType Logger Logger L1 eth.BlockID Override bool ChainId string Output *os.File BlockTime time.Duration PrometheusRetentionTime int64 Apis ApiEnabledMask BlocksInStore int64 RollbackBlocks int64 RollbackStore string IavlDisableFastNode bool IavlLazyLoading bool // contains filtered or unexported fields }
func NewConfig ¶
TODO load config file here and use it as the base config that can be overwritten by cli options
func (*Config) WithAbciServerGrpc ¶
func (*Config) WithAbciServerRpc ¶
func (*Config) WithAdminApi ¶
func (*Config) WithBlockTime ¶
func (*Config) WithBlocks ¶
func (*Config) WithChainId ¶
func (*Config) WithCpuProfile ¶
func (*Config) WithDbBackend ¶
func (*Config) WithGenesisConfig ¶
func (*Config) WithGenesisTime ¶
func (*Config) WithHomeDir ¶
func (*Config) WithIavlDisableFastNode ¶
func (*Config) WithIavlLazyLoading ¶
func (*Config) WithLogger ¶
func (*Config) WithOverride ¶
func (*Config) WithPeptideCometServerRpc ¶
func (*Config) WithPeptideEngineServerRpc ¶
func (*Config) WithPprofRpc ¶
func (*Config) WithPrometheusRetentionTime ¶
func (*Config) WithRollbackBlocks ¶
func (*Config) WithRollbackStore ¶
type DbBackendType ¶
type DbBackendType = cmdb.BackendType
Click to show internal directories.
Click to hide internal directories.