cli

package
v0.0.0-...-4066bdc Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Common ports
	MetricsListenAddr string = ":9102"

	// Firehose chain specific port
	//
	// The initial 16XXX prefix is different for every chain supported by Firehose.
	// The current prefix is the one you should use for your chain. Once you have copied
	// this whole repository, you should open a PR on firehose-arweave to bump it again
	// so the next team supporting Firehose will use 16XXXX and so forth.
	MindreaderGRPCAddr           string = ":16010"
	NodeManagerAPIAddr           string = ":16041"
	MindreaderNodeManagerAPIAddr string = ":16009"
	MergerServingAddr            string = ":16012"
	RelayerServingAddr           string = ":16011"
	FirehoseGRPCServingAddr      string = ":16042"

	// Data storage default locations
	ATMDirectory         string = "file://{data-dir}/atm"
	MergedBlocksStoreURL string = "file://{data-dir}/storage/merged-blocks"
	OneBlockStoreURL     string = "file://{data-dir}/storage/one-blocks"

	// Tweak this for your chain
	FirstStreamableBlock int = 0

	MindreaderNodeP2PPort string = "30305"
	MindreaderNodeRPCPort string = "8547"

	NodeP2PPort string = "30303"
	NodeRPCPort string = "3030"
	NodeRPCAddr string = "http://localhost:3030"
)

Variables

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

Functions

func FlagDescription

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

func Main

func Main()

func MustReplaceDataDir

func MustReplaceDataDir(dataDir, in string) string

MustReplaceDataDir is used in sf-ethereum-priv

func Start

func Start(dataDir string, args []string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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