config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Copyright (C) 2023, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*config.Config

	// Tracing
	TraceEnabled    bool    `json:"traceEnabled"`
	TraceSampleRate float64 `json:"traceSampleRate"`

	// Streaming Ports
	DecisionsPort uint16 `json:"decisionsPort"`
	BlocksPort    uint16 `json:"blocksPort"`

	// Mempool
	MempoolSize         int      `json:"mempoolSize"`
	MempoolPayerSize    int      `json:"mempoolPayerSize"`
	MempoolExemptPayers []string `json:"mempoolExemptPayers"`

	// 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 New

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

func (*Config) GetBlocksPort

func (c *Config) GetBlocksPort() uint16

func (*Config) GetDecisionsPort

func (c *Config) GetDecisionsPort() uint16

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

func (c *Config) GetTestMode() bool

func (*Config) GetTraceConfig

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

Jump to

Keyboard shortcuts

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