Documentation ¶
Overview ¶
Copyright (C) 2023, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- type Config
- func (c *Config) GetContinuousProfilerConfig() *profiler.Config
- func (c *Config) GetLogLevel() logging.Level
- func (c *Config) GetMempoolExemptPayers() [][]byte
- func (c *Config) GetMempoolPayerSize() int
- func (c *Config) GetMempoolSize() int
- func (c *Config) GetMempoolVerifyBalances() bool
- func (c *Config) GetParallelism() int
- func (c *Config) GetPreferredBlocksPerSecond() uint64
- func (c *Config) GetStateSyncServerDelay() time.Duration
- func (c *Config) GetStreamingBacklogSize() int
- func (c *Config) GetTestMode() bool
- func (c *Config) GetTraceConfig() *trace.Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { *config.Config // Builder PreferredBlocksPerSecond uint64 `json:"preferredBlocksPerSecond"` // Gossip GossipInterval time.Duration `json:"gossipInterval"` GossipMaxSize int `json:"gossipMaxSize"` GossipProposerDiff int `json:"gossipProposerDiff"` GossipProposerDepth int `json:"gossipProposerDepth"` BuildProposerDiff int `json:"buildProposerDiff"` VerifyTimeout int64 `json:"verifyTimeout"` // Tracing TraceEnabled bool `json:"traceEnabled"` TraceSampleRate float64 `json:"traceSampleRate"` // Profiling ContinuousProfilerDir string `json:"continuousProfilerDir"` // "*" is replaced with rand int // Streaming settings StreamingBacklogSize int `json:"streamingBacklogSize"` // Mempool MempoolSize int `json:"mempoolSize"` MempoolPayerSize int `json:"mempoolPayerSize"` MempoolExemptPayers []string `json:"mempoolExemptPayers"` MempoolVerifyBalances bool `json:"mempoolVerifyBalances"` // Order Book // // This is denoted as <asset 1>-<asset 2> // // TODO: add ability to denote min rate/min amount for tracking to avoid spam TrackedPairs []string `json:"trackedPairs"` // which asset ID pairs we care about // Misc TestMode bool `json:"testMode"` // makes gossip/building manual LogLevel logging.Level `json:"logLevel"` Parallelism int `json:"parallelism"` // State Sync StateSyncServerDelay time.Duration `json:"stateSyncServerDelay"` // for testing // contains filtered or unexported fields }
func (*Config) GetContinuousProfilerConfig ¶
func (*Config) GetLogLevel ¶
func (*Config) GetMempoolExemptPayers ¶
func (*Config) GetMempoolPayerSize ¶
func (*Config) GetMempoolSize ¶
func (*Config) GetMempoolVerifyBalances ¶
func (*Config) GetParallelism ¶
func (*Config) GetPreferredBlocksPerSecond ¶
func (*Config) GetStateSyncServerDelay ¶
func (*Config) GetStreamingBacklogSize ¶
func (*Config) GetTestMode ¶
func (*Config) GetTraceConfig ¶
Click to show internal directories.
Click to hide internal directories.