Documentation ¶
Index ¶
- Constants
- func IsPruningOptionNothing() bool
- func PprofDownload(context *server.Context)
- func RegisterDynamicConfig(logger log.Logger)
- type ApolloClient
- type CustomChangeListener
- type FecConfig
- func (c *FecConfig) GetActiveVC() bool
- func (c *FecConfig) GetBlockCompressFlag() int
- func (c *FecConfig) GetBlockCompressType() int
- func (c *FecConfig) GetBlockPartSize() int
- func (c *FecConfig) GetCommitGapHeight() int64
- func (c *FecConfig) GetCommitGapOffset() int64
- func (c *FecConfig) GetCsTimeoutCommit() time.Duration
- func (c *FecConfig) GetCsTimeoutPrecommit() time.Duration
- func (c *FecConfig) GetCsTimeoutPrecommitDelta() time.Duration
- func (c *FecConfig) GetCsTimeoutPrevote() time.Duration
- func (c *FecConfig) GetCsTimeoutPrevoteDelta() time.Duration
- func (c *FecConfig) GetCsTimeoutPropose() time.Duration
- func (c *FecConfig) GetCsTimeoutProposeDelta() time.Duration
- func (c *FecConfig) GetDeliverTxsExecuteMode() int
- func (c *FecConfig) GetDynamicGpCheckBlocks() int
- func (c *FecConfig) GetDynamicGpCoefficient() int
- func (c *FecConfig) GetDynamicGpMaxGasUsed() int64
- func (c *FecConfig) GetDynamicGpMaxTxNum() int64
- func (c *FecConfig) GetDynamicGpMode() int
- func (c *FecConfig) GetDynamicGpWeight() int
- func (c *FecConfig) GetEnableAnalyzer() bool
- func (c *FecConfig) GetEnableDeleteMinGPTx() bool
- func (c *FecConfig) GetEnableDynamicGp() bool
- func (c *FecConfig) GetEnableHasBlockPartMsg() bool
- func (c *FecConfig) GetEnablePGU() bool
- func (c *FecConfig) GetEnableWtx() bool
- func (c *FecConfig) GetGasLimitBuffer() uint64
- func (c *FecConfig) GetGcInterval() int
- func (c *FecConfig) GetIavlAcNoBatch() bool
- func (c *FecConfig) GetIavlCacheSize() int
- func (c *FecConfig) GetIavlFSCacheSize() int64
- func (c *FecConfig) GetMaxGasUsedPerBlock() int64
- func (c *FecConfig) GetMaxTxNumPerBlock() int64
- func (c *FecConfig) GetMempoolCacheSize() int
- func (c *FecConfig) GetMempoolCheckTxCost() bool
- func (c *FecConfig) GetMempoolFlush() bool
- func (c *FecConfig) GetMempoolForceRecheckGap() int64
- func (c *FecConfig) GetMempoolRecheck() bool
- func (c *FecConfig) GetMempoolSize() int
- func (c *FecConfig) GetNodeKeyWhitelist() []string
- func (c *FecConfig) GetPGUAdjustment() float64
- func (c *FecConfig) GetSentryAddrs() []string
- func (c *FecConfig) SetActiveVC(value bool)
- func (c *FecConfig) SetBlockCompressFlag(value int)
- func (c *FecConfig) SetBlockCompressType(value int)
- func (c *FecConfig) SetBlockPartSize(value int)
- func (c *FecConfig) SetCommitGapHeight(value int64)
- func (c *FecConfig) SetCommitGapOffset(value int64)
- func (c *FecConfig) SetCsTimeoutCommit(value time.Duration)
- func (c *FecConfig) SetCsTimeoutPrecommit(value time.Duration)
- func (c *FecConfig) SetCsTimeoutPrecommitDelta(value time.Duration)
- func (c *FecConfig) SetCsTimeoutPrevote(value time.Duration)
- func (c *FecConfig) SetCsTimeoutPrevoteDelta(value time.Duration)
- func (c *FecConfig) SetCsTimeoutPropose(value time.Duration)
- func (c *FecConfig) SetCsTimeoutProposeDelta(value time.Duration)
- func (c *FecConfig) SetDeliverTxsExecuteMode(mode int)
- func (c *FecConfig) SetDynamicGpCheckBlocks(value int)
- func (c *FecConfig) SetDynamicGpCoefficient(value int)
- func (c *FecConfig) SetDynamicGpMaxGasUsed(value int64)
- func (c *FecConfig) SetDynamicGpMaxTxNum(value int64)
- func (c *FecConfig) SetDynamicGpMode(value int)
- func (c *FecConfig) SetDynamicGpWeight(value int)
- func (c *FecConfig) SetEnableAnalyzer(value bool)
- func (c *FecConfig) SetEnableDeleteMinGPTx(enable bool)
- func (c *FecConfig) SetEnableDynamicGp(value bool)
- func (c *FecConfig) SetEnableHasBlockPartMsg(value bool)
- func (c *FecConfig) SetEnablePGU(value bool)
- func (c *FecConfig) SetEnableWtx(value bool)
- func (c *FecConfig) SetGasLimitBuffer(value uint64)
- func (c *FecConfig) SetGcInterval(value int)
- func (c *FecConfig) SetIavlAcNoBatch(value bool)
- func (c *FecConfig) SetIavlCacheSize(value int)
- func (c *FecConfig) SetIavlFSCacheSize(value int64)
- func (c *FecConfig) SetMaxGasUsedPerBlock(value int64)
- func (c *FecConfig) SetMaxTxNumPerBlock(value int64)
- func (c *FecConfig) SetMempoolCacheSize(value int)
- func (c *FecConfig) SetMempoolCheckTxCost(value bool)
- func (c *FecConfig) SetMempoolFlush(value bool)
- func (c *FecConfig) SetMempoolForceRecheckGap(value int64)
- func (c *FecConfig) SetMempoolRecheck(value bool)
- func (c *FecConfig) SetMempoolSize(value int)
- func (c *FecConfig) SetNodeKeyWhitelist(value string)
- func (c *FecConfig) SetPGUAdjustment(value float64)
- func (c *FecConfig) SetSentryAddrs(value string)
- type LocalClient
- type PporfConfig
Constants ¶
View Source
const ( FlagEnableDynamic = "config.enable-dynamic" FlagMempoolRecheck = "mempool.recheck" FlagMempoolForceRecheckGap = "mempool.force_recheck_gap" FlagMempoolSize = "mempool.size" FlagMempoolCacheSize = "mempool.cache_size" FlagMempoolFlush = "mempool.flush" FlagMaxTxNumPerBlock = "mempool.max_tx_num_per_block" FlagMaxGasUsedPerBlock = "mempool.max_gas_used_per_block" FlagEnablePGU = "mempool.enable-pgu" FlagPGUAdjustment = "mempool.pgu-adjustment" FlagNodeKeyWhitelist = "mempool.node_key_whitelist" FlagMempoolCheckTxCost = "mempool.check_tx_cost" FlagMempoolEnableDeleteMinGPTx = "mempool.enable_delete_min_gp_tx" FlagGasLimitBuffer = "gas-limit-buffer" FlagEnableDynamicGp = "enable-dynamic-gp" FlagDynamicGpMode = "dynamic-gp-mode" FlagDynamicGpWeight = "dynamic-gp-weight" FlagDynamicGpCheckBlocks = "dynamic-gp-check-blocks" FlagDynamicGpCoefficient = "dynamic-gp-coefficient" FlagDynamicGpMaxGasUsed = "dynamic-gp-max-gas-used" FlagDynamicGpMaxTxNum = "dynamic-gp-max-tx-num" FlagEnableWrappedTx = "enable-wtx" FlagSentryAddrs = "p2p.sentry_addrs" FlagCsTimeoutPropose = "consensus.timeout_propose" FlagCsTimeoutProposeDelta = "consensus.timeout_propose_delta" FlagCsTimeoutPrevote = "consensus.timeout_prevote" FlagCsTimeoutPrevoteDelta = "consensus.timeout_prevote_delta" FlagCsTimeoutPrecommit = "consensus.timeout_precommit" FlagCsTimeoutPrecommitDelta = "consensus.timeout_precommit_delta" FlagCsTimeoutCommit = "consensus.timeout_commit" FlagEnableHasBlockPartMsg = "enable-blockpart-ack" FlagDebugGcInterval = "debug.gc-interval" FlagCommitGapOffset = "commit-gap-offset" )
View Source
const ( FlagPprofAutoDump = "pprof-auto-dump" FlagPprofCollectInterval = "pprof-collect-interval" FlagPprofCpuTriggerPercentMin = "pprof-cpu-trigger-percent-min" FlagPprofCpuTriggerPercentDiff = "pprof-cpu-trigger-percent-diff" FlagPprofCpuTriggerPercentAbs = "pprof-cpu-trigger-percent-abs" FlagPprofMemTriggerPercentMin = "pprof-mem-trigger-percent-min" FlagPprofMemTriggerPercentDiff = "pprof-mem-trigger-percent-diff" FlagPprofMemTriggerPercentAbs = "pprof-mem-trigger-percent-abs" FlagPprofCoolDown = "pprof-cool-down" FlagPprofAbciElapsed = "pprof-trigger-abci-elapsed" FlagPprofUseCGroup = "pprof-use-cgroup" )
View Source
const FlagApollo = "config.apollo"
View Source
const (
LocalDynamicConfigPath = "config.dynamic.json"
)
Variables ¶
This section is empty.
Functions ¶
func IsPruningOptionNothing ¶
func IsPruningOptionNothing() bool
func RegisterDynamicConfig ¶
Types ¶
type ApolloClient ¶
type ApolloClient struct { Namespace string *agollo.Client // contains filtered or unexported fields }
func NewApolloClient ¶
func NewApolloClient(fecConf *FecConfig) *ApolloClient
func (*ApolloClient) LoadConfig ¶
func (a *ApolloClient) LoadConfig() (loaded bool)
type CustomChangeListener ¶
type CustomChangeListener struct {
// contains filtered or unexported fields
}
func (*CustomChangeListener) OnChange ¶
func (c *CustomChangeListener) OnChange(changeEvent *storage.ChangeEvent)
func (*CustomChangeListener) OnNewestChange ¶
func (c *CustomChangeListener) OnNewestChange(event *storage.FullChangeEvent)
type FecConfig ¶
type FecConfig struct {
// contains filtered or unexported fields
}
func GetFecConfig ¶
func GetFecConfig() *FecConfig
func NewFecConfig ¶
func NewFecConfig() *FecConfig
func (*FecConfig) GetActiveVC ¶
func (*FecConfig) GetBlockCompressFlag ¶
func (*FecConfig) GetBlockCompressType ¶
func (*FecConfig) GetBlockPartSize ¶
func (*FecConfig) GetCommitGapHeight ¶
func (*FecConfig) GetCommitGapOffset ¶
func (*FecConfig) GetCsTimeoutCommit ¶
func (*FecConfig) GetCsTimeoutPrecommit ¶
func (*FecConfig) GetCsTimeoutPrecommitDelta ¶
func (*FecConfig) GetCsTimeoutPrevote ¶
func (*FecConfig) GetCsTimeoutPrevoteDelta ¶
func (*FecConfig) GetCsTimeoutPropose ¶
func (*FecConfig) GetCsTimeoutProposeDelta ¶
func (*FecConfig) GetDeliverTxsExecuteMode ¶
func (*FecConfig) GetDynamicGpCheckBlocks ¶
func (*FecConfig) GetDynamicGpCoefficient ¶
func (*FecConfig) GetDynamicGpMaxGasUsed ¶
func (*FecConfig) GetDynamicGpMaxTxNum ¶
func (*FecConfig) GetDynamicGpMode ¶
func (*FecConfig) GetDynamicGpWeight ¶
func (*FecConfig) GetEnableAnalyzer ¶
func (*FecConfig) GetEnableDeleteMinGPTx ¶
func (*FecConfig) GetEnableDynamicGp ¶
func (*FecConfig) GetEnableHasBlockPartMsg ¶
func (*FecConfig) GetEnablePGU ¶
func (*FecConfig) GetEnableWtx ¶
func (*FecConfig) GetGasLimitBuffer ¶
func (*FecConfig) GetGcInterval ¶
func (*FecConfig) GetIavlAcNoBatch ¶
func (*FecConfig) GetIavlCacheSize ¶
func (*FecConfig) GetIavlFSCacheSize ¶
func (*FecConfig) GetMaxGasUsedPerBlock ¶
func (*FecConfig) GetMaxTxNumPerBlock ¶
func (*FecConfig) GetMempoolCacheSize ¶
func (*FecConfig) GetMempoolCheckTxCost ¶
func (*FecConfig) GetMempoolFlush ¶
func (*FecConfig) GetMempoolForceRecheckGap ¶
func (*FecConfig) GetMempoolRecheck ¶
func (*FecConfig) GetMempoolSize ¶
func (*FecConfig) GetNodeKeyWhitelist ¶
func (*FecConfig) GetPGUAdjustment ¶
func (*FecConfig) GetSentryAddrs ¶
func (*FecConfig) SetActiveVC ¶
func (*FecConfig) SetBlockCompressFlag ¶
func (*FecConfig) SetBlockCompressType ¶
func (*FecConfig) SetBlockPartSize ¶
func (*FecConfig) SetCommitGapHeight ¶
func (*FecConfig) SetCommitGapOffset ¶
func (*FecConfig) SetCsTimeoutCommit ¶
func (*FecConfig) SetCsTimeoutPrecommit ¶
func (*FecConfig) SetCsTimeoutPrecommitDelta ¶
func (*FecConfig) SetCsTimeoutPrevote ¶
func (*FecConfig) SetCsTimeoutPrevoteDelta ¶
func (*FecConfig) SetCsTimeoutPropose ¶
func (*FecConfig) SetCsTimeoutProposeDelta ¶
func (*FecConfig) SetDeliverTxsExecuteMode ¶
func (*FecConfig) SetDynamicGpCheckBlocks ¶
func (*FecConfig) SetDynamicGpCoefficient ¶
func (*FecConfig) SetDynamicGpMaxGasUsed ¶
func (*FecConfig) SetDynamicGpMaxTxNum ¶
func (*FecConfig) SetDynamicGpMode ¶
func (*FecConfig) SetDynamicGpWeight ¶
func (*FecConfig) SetEnableAnalyzer ¶
func (*FecConfig) SetEnableDeleteMinGPTx ¶
func (*FecConfig) SetEnableDynamicGp ¶
func (*FecConfig) SetEnableHasBlockPartMsg ¶
func (*FecConfig) SetEnablePGU ¶
func (*FecConfig) SetEnableWtx ¶
func (*FecConfig) SetGasLimitBuffer ¶
func (*FecConfig) SetGcInterval ¶
func (*FecConfig) SetIavlAcNoBatch ¶
func (*FecConfig) SetIavlCacheSize ¶
func (*FecConfig) SetIavlFSCacheSize ¶
func (*FecConfig) SetMaxGasUsedPerBlock ¶
func (*FecConfig) SetMaxTxNumPerBlock ¶
func (*FecConfig) SetMempoolCacheSize ¶
func (*FecConfig) SetMempoolCheckTxCost ¶
func (*FecConfig) SetMempoolFlush ¶
func (*FecConfig) SetMempoolForceRecheckGap ¶
func (*FecConfig) SetMempoolRecheck ¶
func (*FecConfig) SetMempoolSize ¶
func (*FecConfig) SetNodeKeyWhitelist ¶
func (*FecConfig) SetPGUAdjustment ¶
func (*FecConfig) SetSentryAddrs ¶
type LocalClient ¶
type LocalClient struct {
// contains filtered or unexported fields
}
func NewLocalClient ¶
func (*LocalClient) Close ¶
func (a *LocalClient) Close() error
func (*LocalClient) Enable ¶
func (a *LocalClient) Enable() (err error)
func (*LocalClient) LoadConfig ¶
func (a *LocalClient) LoadConfig() (loaded bool)
type PporfConfig ¶
type PporfConfig struct {
// contains filtered or unexported fields
}
func LoadPprofFromConfig ¶
func LoadPprofFromConfig() *PporfConfig
Click to show internal directories.
Click to hide internal directories.