Documentation ¶
Index ¶
- type AddressConfig
- type BloomFilterConfig
- type CacheConfig
- type Config
- type DBConfig
- type EconomicsConfig
- type ElasticSearchConfig
- type EpochStartConfig
- type EvictionWaitingListConfig
- type ExternalConfig
- type FacadeConfig
- type FeeSettings
- type GeneralSettingsConfig
- type GlobalSettings
- type HeadersPoolConfig
- type HeartbeatConfig
- type KadDhtPeerDiscoveryConfig
- type MarshalizerConfig
- type NTPConfig
- type NodeConfig
- type P2PConfig
- type Preferences
- type PreferencesConfig
- type RatingSettings
- type RatingValue
- type ResourceStatsConfig
- type RewardsSettings
- type SelectionChance
- type StateTriesConfig
- type StorageConfig
- type StoragePruningConfig
- type TypeConfig
- type ValidatorSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressConfig ¶
AddressConfig will map the json address configuration
type BloomFilterConfig ¶
BloomFilterConfig will map the json bloom filter configuration
type CacheConfig ¶
type CacheConfig struct { Type string `json:"type"` Size uint32 `json:"size"` SizeInBytes uint32 `json:"sizeInBytes"` 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 BootstrapStorage StorageConfig MetaBlockStorage StorageConfig AccountsTrieStorage StorageConfig PeerAccountsTrieStorage StorageConfig TrieSnapshotDB DBConfig EvictionWaitingList EvictionWaitingListConfig StateTriesConfig StateTriesConfig BadBlocksCache CacheConfig TxBlockBodyDataPool CacheConfig PeerBlockBodyDataPool CacheConfig TxDataPool CacheConfig UnsignedTransactionDataPool CacheConfig RewardTransactionDataPool CacheConfig TrieNodesDataPool CacheConfig EpochStartConfig EpochStartConfig Address AddressConfig BLSPublicKey AddressConfig Hasher TypeConfig MultisigHasher TypeConfig Marshalizer MarshalizerConfig VmMarshalizer TypeConfig TxSignMarshalizer TypeConfig ResourceStats ResourceStatsConfig Heartbeat HeartbeatConfig GeneralSettings GeneralSettingsConfig Consensus TypeConfig StoragePruning StoragePruningConfig NTPConfig NTPConfig HeadersPoolConfig HeadersPoolConfig }
Config will hold the entire application configuration parameters
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 EconomicsConfig ¶
type EconomicsConfig struct { GlobalSettings GlobalSettings RewardsSettings RewardsSettings FeeSettings FeeSettings ValidatorSettings ValidatorSettings RatingSettings RatingSettings }
EconomicsConfig will hold economics config
type ElasticSearchConfig ¶
ElasticSearchConfig will hold the configuration for the elastic search
type EpochStartConfig ¶
EpochStartConfig will hold the configuration of EpochStart settings
type EvictionWaitingListConfig ¶
EvictionWaitingListConfig will hold the configuration for the EvictionWaitingList
type ExternalConfig ¶
type ExternalConfig struct {
ElasticSearchConnector ElasticSearchConfig
}
ExternalConfig will hold the configurations for external tools, such as Explorer or Elastic Search
type FacadeConfig ¶
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 ¶
GeneralSettingsConfig will hold the general settings for a node
type GlobalSettings ¶
GlobalSettings will hold general economic values
type HeadersPoolConfig ¶
HeadersPoolConfig will map the headers cache configuration
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 uint32 RandezVous string InitialPeerList []string BucketSize uint32 RoutingTableRefreshIntervalInSec uint32 }
KadDhtPeerDiscoveryConfig will hold the kad-dht discovery config settings
type MarshalizerConfig ¶
type MarshalizerConfig struct { Type string `json:"type"` SizeCheckDelta uint32 `json:"sizeCheckDelta"` }
MarshalizerConfig holds the marshalizer related configuration
type NTPConfig ¶
type NTPConfig struct { Hosts []string Port int TimeoutMilliseconds int SyncPeriodSeconds int Version int }
NTPConfig will hold the configuration for NTP queries
type NodeConfig ¶
NodeConfig will hold basic p2p settings
type P2PConfig ¶
type P2PConfig struct { Node NodeConfig KadDhtPeerDiscovery KadDhtPeerDiscoveryConfig }
P2PConfig will hold all the P2P settings
type Preferences ¶
type Preferences struct {
Preferences PreferencesConfig
}
Preferences will hold the configuration related to node's preferences
type PreferencesConfig ¶
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 SelectionChance []SelectionChance }
RatingSettings will hold rating settings
type RatingValue ¶
RatingValue will hold different rating options with increase and decrease steps
type ResourceStatsConfig ¶
ResourceStatsConfig will hold all resource stats settings
type RewardsSettings ¶
type RewardsSettings struct { LeaderPercentage float64 DeveloperPercentage float64 DenominationCoefficientForView string }
RewardsSettings will hold economics rewards settings
type SelectionChance ¶
RatingValue will hold different rating options with increase and decresea steps
type StateTriesConfig ¶
type StateTriesConfig struct { CheckpointRoundsModulus uint AccountsStatePruningEnabled bool PeerStatePruningEnabled bool }
StateTriesConfig will hold information about state tries
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 { Enabled bool 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 { GenesisNodePrice string UnBondPeriod string TotalSupply string MinStepValue string NumNodes uint32 AuctionEnableNonce string StakeEnableNonce string NumRoundsWithoutBleed string MaximumPercentageToBleed string BleedPercentagePerRound string UnJailValue string }
ValidatorSettings will hold the validator settings