Documentation
¶
Index ¶
Constants ¶
View Source
const ( DdAgentHost = "dd-agent-host" DdTraceAgentPort = "dd-trace-agent-port" NonValidatingFullNodeFlag = "non-validating-full-node" DdErrorTrackingFormat = "dd-error-tracking-format" // Cosmos flags below. These config values can be set as flags or in config.toml. GrpcAddress = "grpc.address" GrpcEnable = "grpc.enable" // Grpc Streaming GrpcStreamingEnabled = "grpc-streaming-enabled" GrpcStreamingFlushIntervalMs = "grpc-streaming-flush-interval-ms" GrpcStreamingMaxBatchSize = "grpc-streaming-max-batch-size" GrpcStreamingMaxChannelBufferSize = "grpc-streaming-max-channel-buffer-size" WebsocketStreamingEnabled = "websocket-streaming-enabled" WebsocketStreamingPort = "websocket-streaming-port" FullNodeStreamingSnapshotInterval = "fns-snapshot-interval" // Slinky VEs enabled VEOracleEnabled = "slinky-vote-extension-oracle-enabled" // Enable optimistic block execution. OptimisticExecutionEnabled = "optimistic-execution-enabled" OptimisticExecutionTestAbortRate = "optimistic-execution-test-abort-rate" )
List of CLI flags.
View Source
const ( DefaultDdAgentHost = "" DefaultDdTraceAgentPort = 8126 DefaultNonValidatingFullNode = false DefaultDdErrorTrackingFormat = false DefaultGrpcStreamingEnabled = false DefaultGrpcStreamingFlushIntervalMs = 50 DefaultGrpcStreamingMaxBatchSize = 100_000 DefaultGrpcStreamingMaxChannelBufferSize = 100_000 DefaultWebsocketStreamingEnabled = false DefaultWebsocketStreamingPort = 9092 DefaultFullNodeStreamingSnapshotInterval = 0 DefaultVEOracleEnabled = true DefaultOptimisticExecutionEnabled = true DefaultOptimisticExecutionTestAbortRate = 0 )
Default values.
Variables ¶
This section is empty.
Functions ¶
func AddFlagsToCmd ¶
AddFlagsToCmd adds flags to app initialization. These flags should be applied to the `start` command of the V4 Cosmos application. E.g. `dydxprotocold start --non-validating-full-node true`.
Types ¶
type Flags ¶
type Flags struct {
DdAgentHost string
DdTraceAgentPort uint16
NonValidatingFullNode bool
DdErrorTrackingFormat bool
// Existing flags
GrpcAddress string
GrpcEnable bool
// Full Node Streaming
GrpcStreamingEnabled bool
GrpcStreamingFlushIntervalMs uint32
GrpcStreamingMaxBatchSize uint32
GrpcStreamingMaxChannelBufferSize uint32
WebsocketStreamingEnabled bool
WebsocketStreamingPort uint16
FullNodeStreamingSnapshotInterval uint32
VEOracleEnabled bool // Slinky Vote Extensions
// Optimistic block execution
OptimisticExecutionEnabled bool
OptimisticExecutionTestAbortRate uint16
}
A struct containing the values of all flags.
func GetFlagValuesFromOptions ¶
func GetFlagValuesFromOptions( appOpts servertypes.AppOptions, ) Flags
GetFlagValuesFromOptions gets values from the `AppOptions` struct which contains values from the command-line flags.
Click to show internal directories.
Click to hide internal directories.