Documentation
¶
Index ¶
- type BlsConfig
- type ConsensusConfig
- type DevnetConfig
- type DnsSync
- type GeneralConfig
- type HarmonyConfig
- type HttpConfig
- type LegacyConfig
- type LogConfig
- type LogContext
- type LogVerbosePrints
- type NetworkConfig
- type P2pConfig
- type PprofConfig
- type PrometheusConfig
- type RevertConfig
- type RpcOptConfig
- type ShardDataConfig
- type SyncConfig
- type SysConfig
- type TiKVConfig
- type TxPoolConfig
- type WsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusConfig ¶
type DevnetConfig ¶
type GeneralConfig ¶
type HarmonyConfig ¶
type HarmonyConfig struct {
Version string
General GeneralConfig
Network NetworkConfig
P2P P2pConfig
HTTP HttpConfig
WS WsConfig
RPCOpt RpcOptConfig
BLSKeys BlsConfig
TxPool TxPoolConfig
Pprof PprofConfig
Log LogConfig
Sync SyncConfig
Sys *SysConfig `toml:",omitempty"`
Consensus *ConsensusConfig `toml:",omitempty"`
Devnet *DevnetConfig `toml:",omitempty"` // Deprecated
Revert *RevertConfig `toml:",omitempty"`
Legacy *LegacyConfig `toml:",omitempty"`
Prometheus *PrometheusConfig `toml:",omitempty"`
TiKV *TiKVConfig `toml:",omitempty"`
DNSSync DnsSync
ShardData ShardDataConfig
}
HarmonyConfig contains all the configs user can set for running harmony binary. Served as the bridge from user set flags to internal node configs. Also user can persist this structure to a toml file to avoid inputting all arguments.
type HttpConfig ¶
type LegacyConfig ¶
type LogConfig ¶
type LogConfig struct {
Console bool
Folder string
FileName string
RotateSize int
RotateCount int
RotateMaxAge int
Verbosity int
VerbosePrints LogVerbosePrints
Context *LogContext `toml:",omitempty"`
}
type LogContext ¶
type LogVerbosePrints ¶
type LogVerbosePrints struct {
Config bool
}
func FlagSliceToLogVerbosePrints ¶
func FlagSliceToLogVerbosePrints(verbosePrintsFlagSlice []string) LogVerbosePrints
type NetworkConfig ¶
type PprofConfig ¶
type PrometheusConfig ¶
type RevertConfig ¶
TODO: make `revert` to a separate command
type RpcOptConfig ¶
type RpcOptConfig struct {
DebugEnabled bool // Enables PrivateDebugService APIs, including the EVM tracer
EthRPCsEnabled bool // Expose Eth RPCs
StakingRPCsEnabled bool // Expose Staking RPCs
LegacyRPCsEnabled bool // Expose Legacy RPCs
RpcFilterFile string // Define filters to enable/disable RPC exposure
RateLimterEnabled bool // Enable Rate limiter for RPC
RequestsPerSecond int // for RPC rate limiter
}
type ShardDataConfig ¶
type SyncConfig ¶
type SyncConfig struct {
// TODO: Remove this bool after stream sync is fully up.
Enabled bool // enable the stream sync protocol
Downloader bool // start the sync downloader client
Concurrency int // concurrency used for stream sync protocol
MinPeers int // minimum streams to start a sync task.
InitStreams int // minimum streams in bootstrap to start sync loop.
DiscSoftLowCap int // when number of streams is below this value, spin discover during check
DiscHardLowCap int // when removing stream, num is below this value, spin discovery immediately
DiscHighCap int // upper limit of streams in one sync protocol
DiscBatch int // size of each discovery
}
type TiKVConfig ¶ added in v0.1.8
type TxPoolConfig ¶
Click to show internal directories.
Click to hide internal directories.