Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2023 Changes in this version + const FlagApollo + const FlagCsTimeoutCommit + const FlagCsTimeoutPrecommit + const FlagCsTimeoutPrecommitDelta + const FlagCsTimeoutPrevote + const FlagCsTimeoutPrevoteDelta + const FlagCsTimeoutPropose + const FlagCsTimeoutProposeDelta + const FlagDebugGcInterval + const FlagDynamicGpCheckBlocks + const FlagDynamicGpCoefficient + const FlagDynamicGpMaxGasUsed + const FlagDynamicGpMaxTxNum + const FlagDynamicGpMode + const FlagDynamicGpWeight + const FlagEnableDynamic + const FlagEnableDynamicGp + const FlagEnableHasBlockPartMsg + const FlagEnablePGU + const FlagEnableWrappedTx + const FlagGasLimitBuffer + const FlagMaxGasUsedPerBlock + const FlagMaxTxNumPerBlock + const FlagMempoolCacheSize + const FlagMempoolCheckTxCost + const FlagMempoolFlush + const FlagMempoolForceRecheckGap + const FlagMempoolRecheck + const FlagMempoolSize + const FlagNodeKeyWhitelist + const FlagPGUAdjustment + const FlagPprofAbciElapsed + const FlagPprofAutoDump + const FlagPprofCollectInterval + const FlagPprofCoolDown + const FlagPprofCpuTriggerPercentAbs + const FlagPprofCpuTriggerPercentDiff + const FlagPprofCpuTriggerPercentMin + const FlagPprofMemTriggerPercentAbs + const FlagPprofMemTriggerPercentDiff + const FlagPprofMemTriggerPercentMin + const FlagPprofUseCGroup + const FlagSentryAddrs + const LocalDynamicConfigPath + func IsPruningOptionNothing() bool + func PprofDownload(context *server.Context) + func RegisterDynamicConfig(logger log.Logger) + type ApolloClient struct + Namespace string + func NewApolloClient(oecConf *OecConfig) *ApolloClient + func (a *ApolloClient) LoadConfig() (loaded bool) + type CustomChangeListener struct + func (c *CustomChangeListener) OnChange(changeEvent *storage.ChangeEvent) + func (c *CustomChangeListener) OnNewestChange(event *storage.FullChangeEvent) + type LocalClient struct + func NewLocalClient(path string, oecConf *OecConfig, logger log.Logger) (*LocalClient, error) + func (a *LocalClient) Close() error + func (a *LocalClient) Enable() (err error) + func (a *LocalClient) LoadConfig() (loaded bool) + type OecConfig struct + func GetOecConfig() *OecConfig + func NewOecConfig() *OecConfig + func (c *OecConfig) GetActiveVC() bool + func (c *OecConfig) GetBlockCompressFlag() int + func (c *OecConfig) GetBlockCompressType() int + func (c *OecConfig) GetBlockPartSize() int + func (c *OecConfig) GetCommitGapHeight() int64 + func (c *OecConfig) GetCsTimeoutCommit() time.Duration + func (c *OecConfig) GetCsTimeoutPrecommit() time.Duration + func (c *OecConfig) GetCsTimeoutPrecommitDelta() time.Duration + func (c *OecConfig) GetCsTimeoutPrevote() time.Duration + func (c *OecConfig) GetCsTimeoutPrevoteDelta() time.Duration + func (c *OecConfig) GetCsTimeoutPropose() time.Duration + func (c *OecConfig) GetCsTimeoutProposeDelta() time.Duration + func (c *OecConfig) GetDeliverTxsExecuteMode() int + func (c *OecConfig) GetDynamicGpCheckBlocks() int + func (c *OecConfig) GetDynamicGpCoefficient() int + func (c *OecConfig) GetDynamicGpMaxGasUsed() int64 + func (c *OecConfig) GetDynamicGpMaxTxNum() int64 + func (c *OecConfig) GetDynamicGpMode() int + func (c *OecConfig) GetDynamicGpWeight() int + func (c *OecConfig) GetEnableAnalyzer() bool + func (c *OecConfig) GetEnableDynamicGp() bool + func (c *OecConfig) GetEnableHasBlockPartMsg() bool + func (c *OecConfig) GetEnablePGU() bool + func (c *OecConfig) GetEnableWtx() bool + func (c *OecConfig) GetGasLimitBuffer() uint64 + func (c *OecConfig) GetGcInterval() int + func (c *OecConfig) GetIavlCacheSize() int + func (c *OecConfig) GetIavlFSCacheSize() int64 + func (c *OecConfig) GetMaxGasUsedPerBlock() int64 + func (c *OecConfig) GetMaxTxNumPerBlock() int64 + func (c *OecConfig) GetMempoolCacheSize() int + func (c *OecConfig) GetMempoolCheckTxCost() bool + func (c *OecConfig) GetMempoolFlush() bool + func (c *OecConfig) GetMempoolForceRecheckGap() int64 + func (c *OecConfig) GetMempoolRecheck() bool + func (c *OecConfig) GetMempoolSize() int + func (c *OecConfig) GetNodeKeyWhitelist() []string + func (c *OecConfig) GetPGUAdjustment() float64 + func (c *OecConfig) GetSentryAddrs() []string + func (c *OecConfig) SetActiveVC(value bool) + func (c *OecConfig) SetBlockCompressFlag(value int) + func (c *OecConfig) SetBlockCompressType(value int) + func (c *OecConfig) SetBlockPartSize(value int) + func (c *OecConfig) SetCommitGapHeight(value int64) + func (c *OecConfig) SetCsTimeoutCommit(value time.Duration) + func (c *OecConfig) SetCsTimeoutPrecommit(value time.Duration) + func (c *OecConfig) SetCsTimeoutPrecommitDelta(value time.Duration) + func (c *OecConfig) SetCsTimeoutPrevote(value time.Duration) + func (c *OecConfig) SetCsTimeoutPrevoteDelta(value time.Duration) + func (c *OecConfig) SetCsTimeoutPropose(value time.Duration) + func (c *OecConfig) SetCsTimeoutProposeDelta(value time.Duration) + func (c *OecConfig) SetDeliverTxsExecuteMode(mode int) + func (c *OecConfig) SetDynamicGpCheckBlocks(value int) + func (c *OecConfig) SetDynamicGpCoefficient(value int) + func (c *OecConfig) SetDynamicGpMaxGasUsed(value int64) + func (c *OecConfig) SetDynamicGpMaxTxNum(value int64) + func (c *OecConfig) SetDynamicGpMode(value int) + func (c *OecConfig) SetDynamicGpWeight(value int) + func (c *OecConfig) SetEnableAnalyzer(value bool) + func (c *OecConfig) SetEnableDynamicGp(value bool) + func (c *OecConfig) SetEnableHasBlockPartMsg(value bool) + func (c *OecConfig) SetEnablePGU(value bool) + func (c *OecConfig) SetEnableWtx(value bool) + func (c *OecConfig) SetGasLimitBuffer(value uint64) + func (c *OecConfig) SetGcInterval(value int) + func (c *OecConfig) SetIavlCacheSize(value int) + func (c *OecConfig) SetIavlFSCacheSize(value int64) + func (c *OecConfig) SetMaxGasUsedPerBlock(value int64) + func (c *OecConfig) SetMaxTxNumPerBlock(value int64) + func (c *OecConfig) SetMempoolCacheSize(value int) + func (c *OecConfig) SetMempoolCheckTxCost(value bool) + func (c *OecConfig) SetMempoolFlush(value bool) + func (c *OecConfig) SetMempoolForceRecheckGap(value int64) + func (c *OecConfig) SetMempoolRecheck(value bool) + func (c *OecConfig) SetMempoolSize(value int) + func (c *OecConfig) SetNodeKeyWhitelist(value string) + func (c *OecConfig) SetPGUAdjustment(value float64) + func (c *OecConfig) SetSentryAddrs(value string) + type PporfConfig struct + func LoadPprofFromConfig() *PporfConfig