server

package
v1.2.0-dhobyghaut Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FlagMinGasPrices       = "minimum-gas-prices"
	FlagHaltHeight         = "halt-height"
	FlagHaltTime           = "halt-time"
	FlagInterBlockCache    = "inter-block-cache"
	FlagUnsafeSkipUpgrades = "unsafe-skip-upgrades"
	FlagTrace              = "trace"
	FlagInvCheckPeriod     = "inv-check-period"

	FlagPruning           = "pruning"
	FlagPruningKeepRecent = "pruning-keep-recent"
	FlagPruningKeepEvery  = "pruning-keep-every"
	FlagPruningInterval   = "pruning-interval"
	FlagIndexEvents       = "index-events"
	FlagMinRetainBlocks   = "min-retain-blocks"
)
View Source
const (
	FlagStateSyncSnapshotInterval   = "state-sync.snapshot-interval"
	FlagStateSyncSnapshotKeepRecent = "state-sync.snapshot-keep-recent"
)

State sync-related flags.

View Source
const (
	JSONRPCEnable          = "json-rpc.enable"
	JSONRPCAPI             = "json-rpc.api"
	JSONRPCAddress         = "json-rpc.address"
	JSONWsAddress          = "json-rpc.ws-address"
	JSONRPCGasCap          = "json-rpc.gas-cap"
	JSONRPCEVMTimeout      = "json-rpc.evm-timeout"
	JSONRPCTxFeeCap        = "json-rpc.txfee-cap"
	JSONRPCFilterCap       = "json-rpc.filter-cap"
	JSONRPCLogsCap         = "json-rpc.logs-cap"
	JSONRPCBlockRangeCap   = "json-rpc.block-range-cap"
	JSONRPCHTTPTimeout     = "json-rpc.http-timeout"
	JSONRPCHTTPIdleTimeout = "json-rpc.http-idle-timeout"
)

JSON-RPC flags

View Source
const (
	EVMTracer         = "evm.tracer"
	EVMMaxTxGasWanted = "evm.max-tx-gas-wanted"
)

EVM flags

View Source
const (
	TLSCertPath = "tls.certificate-path"
	TLSKeyPath  = "tls.key-path"
)

TLS flags

View Source
const (
	ServerStartTime = 5 * time.Second
)

Variables

This section is empty.

Functions

func ConnectTmWS

func ConnectTmWS(tmRPCAddr, tmEndpoint string, logger tmlog.Logger) *rpcclient.WSClient

func StartCmd

func StartCmd(appCreator types.AppCreator, defaultNodeHome string) *cobra.Command

StartCmd runs the service passed in, either stand-alone or in-process with Tendermint.

func StartJSONRPC

func StartJSONRPC(ctx *server.Context, clientCtx client.Context, tmRPCAddr, tmEndpoint string, config config.Config) (*http.Server, chan struct{}, error)

StartJSONRPC starts the JSON-RPC server

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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