cli

package
v1.4.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 64 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Protocol = pbbstream.Protocol_ETH

	DefaultChainID      uint32 = 123
	DefaultNetworkID    uint32 = 123
	DefaultDeploymentID string = "eth-local"

	OneBlockStoreURL     string = "file://{sf-data-dir}/storage/one-blocks"
	ForkedBlocksStoreURL string = "file://{sf-data-dir}/storage/forked-blocks"
	MergedBlocksStoreURL string = "file://{sf-data-dir}/storage/merged-blocks"
	IndexStoreURL        string = "file://{sf-data-dir}/storage/index"
	SnapshotsURL         string = "file://{sf-data-dir}/storage/snapshots"
	StateDBDSN           string = "badger://{sf-data-dir}/storage/statedb"

	MetricsListenAddr string = ":9102"

	BlocksCacheDirectory           string = "{sf-data-dir}/blocks-cache"
	BlockstreamGRPCServingAddr     string = ":13039"
	BlockstreamHTTPServingAddr     string = ":13040"
	EVMExecutorGRPCServingAddr     string = ":13036"
	FirehoseGRPCServingAddr        string = ":13042"
	SubstreamsTier1GRPCServingAddr string = ":13044"
	SubstreamsTier2GRPCServingAddr string = ":13045"
	FirehoseGRPCHealthServingAddr  string = ":13043"
	MergerServingAddr              string = ":13012"
	IndexBuilderServiceAddr        string = ":13043"
	ReaderNodeManagerAPIAddr       string = ":13009"
	ReaderGRPCAddr                 string = ":13010"
	NodeManagerAPIAddr             string = ":13041"
	RelayerServingAddr             string = ":13011"
	TokenMetaServingAddr           string = ":13039"
	TraderServingAddr              string = ":13038"
	StateDBServingAddr             string = ":13029"
	StateDBGRPCServingAddr         string = ":13035"

	// Geth instance port definitions
	ReaderNodeP2PPort string = "30305"
	ReaderNodeRPCPort string = "8547"
	NodeP2PPort       string = "30303"
	NodeRPCPort       string = "8545"

	CommonAutoMaxProcsFlag              string = "common-auto-max-procs"
	CommonAutoMemLimitFlag              string = "common-auto-mem-limit-percent"
	CommonSystemShutdownSignalDelayFlag string = "common-system-shutdown-signal-delay"
)

Variables

View Source
var RootCmd = &cobra.Command{Use: "fireeth", Short: "Ethereum on StreamingFast"}
View Source
var StartCmd = &cobra.Command{Use: "start", Short: "Starts Ethereum on StreamingFast services all at once", RunE: sfStartE, Args: cobra.ArbitraryArgs}

Functions

func FlagDescription

func FlagDescription(in string, args ...interface{}) string

func GetIndexStore

func GetIndexStore(dataDir string) (indexStore dstore.Store, possibleIndexSizes []uint64, err error)

func Main

func Main(
	registerCommonFlags func(logger *zap.Logger, cmd *cobra.Command) error,
	registerCommonModules func(runtime *launcher.Runtime) error,
	backupModuleFactories map[string]operator.BackupModuleFactory,
)

func MustReplaceDataDir

func MustReplaceDataDir(dataDir, in string) string

MustReplaceDataDir is used in sf-ethereum-priv

func Purge

func Purge(dataDir string) error

func RegisterCommonFlags

func RegisterCommonFlags(_ *zap.Logger, cmd *cobra.Command) error

func Start

func Start(ctx context.Context, dataDir string, args []string) (err error)

func Version

func Version(version string) string

Types

type UpdatableSuperviser added in v1.4.12

type UpdatableSuperviser interface {
	UpdateLastBlockSeen(blockNum uint64)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL