Documentation ¶
Index ¶
- Constants
- func IsPruningOptionNothing() bool
- func PprofDownload(context *server.Context)
- func RegisterDynamicConfig(logger log.Logger)
- type ApolloClient
- type CustomChangeListener
- type LocalClient
- type 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
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" 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" )
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(oecConf *OecConfig) *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 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 OecConfig ¶
type OecConfig struct {
// contains filtered or unexported fields
}
func GetOecConfig ¶
func GetOecConfig() *OecConfig
func NewOecConfig ¶
func NewOecConfig() *OecConfig
func (*OecConfig) GetActiveVC ¶
func (*OecConfig) GetBlockCompressFlag ¶
func (*OecConfig) GetBlockCompressType ¶
func (*OecConfig) GetBlockPartSize ¶
func (*OecConfig) GetCommitGapHeight ¶
func (*OecConfig) GetCsTimeoutCommit ¶
func (*OecConfig) GetCsTimeoutPrecommit ¶
func (*OecConfig) GetCsTimeoutPrecommitDelta ¶
func (*OecConfig) GetCsTimeoutPrevote ¶
func (*OecConfig) GetCsTimeoutPrevoteDelta ¶
func (*OecConfig) GetCsTimeoutPropose ¶
func (*OecConfig) GetCsTimeoutProposeDelta ¶
func (*OecConfig) GetDeliverTxsExecuteMode ¶
func (*OecConfig) GetDynamicGpCheckBlocks ¶
func (*OecConfig) GetDynamicGpCoefficient ¶
func (*OecConfig) GetDynamicGpMaxGasUsed ¶
func (*OecConfig) GetDynamicGpMaxTxNum ¶
func (*OecConfig) GetDynamicGpMode ¶
func (*OecConfig) GetDynamicGpWeight ¶
func (*OecConfig) GetEnableAnalyzer ¶
func (*OecConfig) GetEnableDynamicGp ¶
func (*OecConfig) GetEnableHasBlockPartMsg ¶
func (*OecConfig) GetEnablePGU ¶
func (*OecConfig) GetEnableWtx ¶
func (*OecConfig) GetGasLimitBuffer ¶
func (*OecConfig) GetGcInterval ¶
func (*OecConfig) GetIavlCacheSize ¶
func (*OecConfig) GetIavlFSCacheSize ¶
func (*OecConfig) GetMaxGasUsedPerBlock ¶
func (*OecConfig) GetMaxTxNumPerBlock ¶
func (*OecConfig) GetMempoolCacheSize ¶
func (*OecConfig) GetMempoolCheckTxCost ¶
func (*OecConfig) GetMempoolFlush ¶
func (*OecConfig) GetMempoolForceRecheckGap ¶
func (*OecConfig) GetMempoolRecheck ¶
func (*OecConfig) GetMempoolSize ¶
func (*OecConfig) GetNodeKeyWhitelist ¶
func (*OecConfig) GetPGUAdjustment ¶
func (*OecConfig) GetSentryAddrs ¶
func (*OecConfig) SetActiveVC ¶
func (*OecConfig) SetBlockCompressFlag ¶
func (*OecConfig) SetBlockCompressType ¶
func (*OecConfig) SetBlockPartSize ¶
func (*OecConfig) SetCommitGapHeight ¶
func (*OecConfig) SetCsTimeoutCommit ¶
func (*OecConfig) SetCsTimeoutPrecommit ¶
func (*OecConfig) SetCsTimeoutPrecommitDelta ¶
func (*OecConfig) SetCsTimeoutPrevote ¶
func (*OecConfig) SetCsTimeoutPrevoteDelta ¶
func (*OecConfig) SetCsTimeoutPropose ¶
func (*OecConfig) SetCsTimeoutProposeDelta ¶
func (*OecConfig) SetDeliverTxsExecuteMode ¶
func (*OecConfig) SetDynamicGpCheckBlocks ¶
func (*OecConfig) SetDynamicGpCoefficient ¶
func (*OecConfig) SetDynamicGpMaxGasUsed ¶
func (*OecConfig) SetDynamicGpMaxTxNum ¶
func (*OecConfig) SetDynamicGpMode ¶
func (*OecConfig) SetDynamicGpWeight ¶
func (*OecConfig) SetEnableAnalyzer ¶
func (*OecConfig) SetEnableDynamicGp ¶
func (*OecConfig) SetEnableHasBlockPartMsg ¶
func (*OecConfig) SetEnablePGU ¶
func (*OecConfig) SetEnableWtx ¶
func (*OecConfig) SetGasLimitBuffer ¶
func (*OecConfig) SetGcInterval ¶
func (*OecConfig) SetIavlCacheSize ¶
func (*OecConfig) SetIavlFSCacheSize ¶
func (*OecConfig) SetMaxGasUsedPerBlock ¶
func (*OecConfig) SetMaxTxNumPerBlock ¶
func (*OecConfig) SetMempoolCacheSize ¶
func (*OecConfig) SetMempoolCheckTxCost ¶
func (*OecConfig) SetMempoolFlush ¶
func (*OecConfig) SetMempoolForceRecheckGap ¶
func (*OecConfig) SetMempoolRecheck ¶
func (*OecConfig) SetMempoolSize ¶
func (*OecConfig) SetNodeKeyWhitelist ¶
func (*OecConfig) SetPGUAdjustment ¶
func (*OecConfig) SetSentryAddrs ¶
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.