config

package
v1.0.67 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressConfig

type AddressConfig struct {
	Length int    `json:"length"`
	Prefix string `json:"prefix"`
}

AddressConfig will map the json address configuration

type AntifloodConfig

type AntifloodConfig struct {
	Cache                     CacheConfig
	PeerMaxMessagesPerSecond  uint32
	PeerMaxTotalSizePerSecond uint64
	MaxMessagesPerSecond      uint32
	MaxTotalSizePerSecond     uint64
}

AntifloodConfig will hold all p2p antiflood parameters

type BloomFilterConfig

type BloomFilterConfig struct {
	Size     uint     `json:"size"`
	HashFunc []string `json:"hashFunc"`
}

BloomFilterConfig will map the json bloom filter configuration

type CacheConfig

type CacheConfig struct {
	Size   uint32 `json:"size"`
	Type   string `json:"type"`
	Shards uint32 `json:"shards"`
}

CacheConfig will map the json cache configuration

type Config

type Config struct {
	MiniBlocksStorage          StorageConfig
	MiniBlockHeadersStorage    StorageConfig
	PeerBlockBodyStorage       StorageConfig
	BlockHeaderStorage         StorageConfig
	TxStorage                  StorageConfig
	UnsignedTransactionStorage StorageConfig
	RewardTxStorage            StorageConfig
	ShardHdrNonceHashStorage   StorageConfig
	MetaHdrNonceHashStorage    StorageConfig
	StatusMetricsStorage       StorageConfig

	ShardDataStorage StorageConfig
	BootstrapStorage StorageConfig
	MetaBlockStorage StorageConfig
	PeerDataStorage  StorageConfig

	AccountsTrieStorage     StorageConfig
	PeerAccountsTrieStorage StorageConfig
	BadBlocksCache          CacheConfig

	TxBlockBodyDataPool         CacheConfig
	StateBlockBodyDataPool      CacheConfig
	PeerBlockBodyDataPool       CacheConfig
	BlockHeaderDataPool         CacheConfig
	BlockHeaderNoncesDataPool   CacheConfig
	TxDataPool                  CacheConfig
	UnsignedTransactionDataPool CacheConfig
	RewardTransactionDataPool   CacheConfig
	MetaBlockBodyDataPool       CacheConfig

	MiniBlockHeaderHashesDataPool CacheConfig
	ShardHeadersDataPool          CacheConfig
	MetaHeaderNoncesDataPool      CacheConfig

	Antiflood        AntifloodConfig
	EpochStartConfig EpochStartConfig
	Logger           LoggerConfig
	Address          AddressConfig
	BLSPublicKey     AddressConfig
	Hasher           TypeConfig
	MultisigHasher   TypeConfig
	Marshalizer      MarshalizerConfig

	ResourceStats   ResourceStatsConfig
	Heartbeat       HeartbeatConfig
	GeneralSettings GeneralSettingsConfig
	Consensus       TypeConfig
	Explorer        ExplorerConfig
	StoragePruning  StoragePruningConfig

	NTPConfig NTPConfig
}

Config will hold the entire application configuration parameters

type ConfigEconomics added in v1.0.20

type ConfigEconomics struct {
	EconomicsAddresses EconomicsAddresses
	RewardsSettings    RewardsSettings
	FeeSettings        FeeSettings
	ValidatorSettings  ValidatorSettings
	RatingSettings     RatingSettings
}

ConfigEconomics will hold economics config

type ConfigPreferences added in v1.0.36

type ConfigPreferences struct {
	Preferences PreferencesConfig
}

ConfigPreferences will hold the configuration related to node's preferences

type DBConfig

type DBConfig struct {
	FilePath          string `json:"file"`
	Type              string `json:"type"`
	BatchDelaySeconds int    `json:"batchDelaySeconds"`
	MaxBatchSize      int    `json:"maxBatchSize"`
	MaxOpenFiles      int    `json:"maxOpenFiles"`
}

DBConfig will map the json db configuration

type EconomicsAddresses added in v1.0.20

type EconomicsAddresses struct {
	CommunityAddress string
	BurnAddress      string
}

EconomicsAddresses will hold economics addresses

type ElasticSearchConfig

type ElasticSearchConfig struct {
	Username string
	Password string
}

ElasticSearchConfig will hold the configuration for the elastic search

type EpochStartConfig

type EpochStartConfig struct {
	MinRoundsBetweenEpochs int64
	RoundsPerEpoch         int64
}

EpochStartConfig will hold the configuration of EpochStart settings

type ExplorerConfig added in v1.0.3

type ExplorerConfig struct {
	Enabled    bool
	IndexerURL string
}

ExplorerConfig will hold the configuration for the explorer indexer

type FacadeConfig

type FacadeConfig struct {
	RestApiInterface string
	PprofEnabled     bool
}

FacadeConfig will hold different configuration option that will be passed to the main ElrondFacade

type FeeSettings

type FeeSettings struct {
	MaxGasLimitPerBlock  string
	GasPerDataByte       string
	DataLimitForBaseCalc string
	MinGasPrice          string
	MinGasLimit          string
}

FeeSettings will hold economics fee settings

type GeneralSettingsConfig

type GeneralSettingsConfig struct {
	DestinationShardAsObserver string
	NetworkID                  string
	StatusPollingIntervalSec   int
}

GeneralSettingsConfig will hold the general settings for a node

type HeartbeatConfig

type HeartbeatConfig struct {
	Enabled                             bool
	MinTimeToWaitBetweenBroadcastsInSec int
	MaxTimeToWaitBetweenBroadcastsInSec int
	DurationInSecToConsiderUnresponsive int
	HeartbeatStorage                    StorageConfig
}

HeartbeatConfig will hold all heartbeat settings

type KadDhtPeerDiscoveryConfig

type KadDhtPeerDiscoveryConfig struct {
	Enabled              bool
	RefreshIntervalInSec int
	RandezVous           string
	InitialPeerList      []string
}

KadDhtPeerDiscoveryConfig will hold the kad-dht discovery config settings

type LoggerConfig added in v1.0.3

type LoggerConfig struct {
	Path            string `json:"path"`
	StackTraceDepth int    `json:"stackTraceDepth"`
}

LoggerConfig will map the json logger configuration

type MarshalizerConfig

type MarshalizerConfig struct {
	Type           string `json:"type"`
	SizeCheckDelta uint32 `json:"sizeCheckDelta"`
}

MarshalizerConfig

type NTPConfig

type NTPConfig struct {
	Hosts               []string
	Port                int
	TimeoutMilliseconds int
	Version             int
}

NTPConfig will hold the configuration for NTP queries

type NodeConfig

type NodeConfig struct {
	Port            int
	Seed            string
	TargetPeerCount int
}

NodeConfig will hold basic p2p settings

type P2PConfig

type P2PConfig struct {
	Node                NodeConfig
	KadDhtPeerDiscovery KadDhtPeerDiscoveryConfig
}

P2PConfig will hold all the P2P settings

type PreferencesConfig

type PreferencesConfig struct {
	NodeDisplayName string
}

PreferencesConfig will hold the fields which are node specific such as the display name

type RatingSettings

type RatingSettings struct {
	StartRating                 uint32
	MaxRating                   uint32
	MinRating                   uint32
	ProposerIncreaseRatingStep  uint32
	ProposerDecreaseRatingStep  uint32
	ValidatorIncreaseRatingStep uint32
	ValidatorDecreaseRatingStep uint32
}

RatingSettings will hold rating settings

type RatingValue

type RatingValue struct {
	Name  string
	Value int32
}

RatingValue will hold different rating options with increase and decresea steps

type ResourceStatsConfig

type ResourceStatsConfig struct {
	Enabled              bool
	RefreshIntervalInSec int
}

ResourceStatsConfig will hold all resource stats settings

type RewardsSettings

type RewardsSettings struct {
	RewardsValue                   string
	CommunityPercentage            float64
	LeaderPercentage               float64
	BurnPercentage                 float64
	DenominationCoefficientForView string
}

RewardsSettings will hold economics rewards settings

type ServersConfig added in v1.0.3

type ServersConfig struct {
	ElasticSearch ElasticSearchConfig
}

ServersConfig will hold all the confidential settings for servers

type StorageConfig

type StorageConfig struct {
	Cache CacheConfig       `json:"cache"`
	DB    DBConfig          `json:"db"`
	Bloom BloomFilterConfig `json:"bloom"`
}

StorageConfig will map the json storage unit configuration

type StoragePruningConfig

type StoragePruningConfig struct {
	FullArchive         bool
	NumEpochsToKeep     uint64
	NumActivePersisters uint64
}

StoragePruningConfig will hold settings relates to storage pruning

type TypeConfig

type TypeConfig struct {
	Type string `json:"type"`
}

TypeConfig will map the json string type configuration

type ValidatorSettings

type ValidatorSettings struct {
	StakeValue    string
	UnBoundPeriod string
}

ValidatorSettings will hold the validator settings

Jump to

Keyboard shortcuts

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