config

package
v0.8.16 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*config.Config

	// Gossip
	GossipMaxSize       int   `json:"gossipMaxSize"`
	GossipProposerDiff  int   `json:"gossipProposerDiff"`
	GossipProposerDepth int   `json:"gossipProposerDepth"`
	NoGossipBuilderDiff int   `json:"noGossipBuilderDiff"`
	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"`

	// Order Book
	//
	// This is denoted as <asset 1>-<asset 2>
	MaxOrdersPerPair int      `json:"maxOrdersPerPair"`
	TrackedPairs     []string `json:"trackedPairs"` // which asset ID pairs we care about

	// Misc
	VerifySignatures  bool          `json:"verifySignatures"`
	StoreTransactions bool          `json:"storeTransactions"`
	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 New

func New(nodeID ids.NodeID, b []byte) (*Config, error)

func (*Config) GetContinuousProfilerConfig

func (c *Config) GetContinuousProfilerConfig() *profiler.Config

func (*Config) GetLogLevel

func (c *Config) GetLogLevel() logging.Level

func (*Config) GetMempoolExemptPayers

func (c *Config) GetMempoolExemptPayers() [][]byte

func (*Config) GetMempoolPayerSize

func (c *Config) GetMempoolPayerSize() int

func (*Config) GetMempoolSize

func (c *Config) GetMempoolSize() int

func (*Config) GetParallelism

func (c *Config) GetParallelism() int

func (*Config) GetStateSyncServerDelay

func (c *Config) GetStateSyncServerDelay() time.Duration

func (*Config) GetStoreTransactions added in v0.3.0

func (c *Config) GetStoreTransactions() bool

func (*Config) GetStreamingBacklogSize

func (c *Config) GetStreamingBacklogSize() int

func (*Config) GetTestMode

func (c *Config) GetTestMode() bool

func (*Config) GetTraceConfig

func (c *Config) GetTraceConfig() *trace.Config

func (*Config) GetVerifySignatures added in v0.3.0

func (c *Config) GetVerifySignatures() bool

func (*Config) Loaded added in v0.3.0

func (c *Config) Loaded() bool

Jump to

Keyboard shortcuts

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