config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT 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

	// Concurrency
	AuthVerificationCores     int `json:"authVerificationCores"`
	RootGenerationCores       int `json:"rootGenerationCores"`
	TransactionExecutionCores int `json:"transactionExecutionCores"`

	// 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"`
	MempoolSponsorSize    int      `json:"mempoolSponsorSize"`
	MempoolExemptSponsors []string `json:"mempoolExemptSponsors"`

	// Misc
	VerifyAuth        bool          `json:"verifyAuth"`
	StoreTransactions bool          `json:"storeTransactions"`
	TestMode          bool          `json:"testMode"` // makes gossip/building manual
	LogLevel          logging.Level `json:"logLevel"`

	// 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) GetAuthVerificationCores

func (c *Config) GetAuthVerificationCores() int

func (*Config) GetContinuousProfilerConfig

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

func (*Config) GetLogLevel

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

func (*Config) GetMempoolExemptSponsors

func (c *Config) GetMempoolExemptSponsors() []codec.Address

func (*Config) GetMempoolSize

func (c *Config) GetMempoolSize() int

func (*Config) GetMempoolSponsorSize

func (c *Config) GetMempoolSponsorSize() int

func (*Config) GetRootGenerationCores

func (c *Config) GetRootGenerationCores() int

func (*Config) GetStateSyncServerDelay

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

func (*Config) GetStoreTransactions

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) GetTransactionExecutionCores

func (c *Config) GetTransactionExecutionCores() int

func (*Config) GetVerifyAuth

func (c *Config) GetVerifyAuth() bool

func (*Config) Loaded

func (c *Config) Loaded() bool

Jump to

Keyboard shortcuts

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