Versions in this module Expand all Collapse all v0 v0.1.0 Jan 19, 2024 Changes in this version + const FlagApollo + const FlagCommitGapOffset + 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 FlagMaxSubscriptionClients + const FlagMaxTxNumPerBlock + const FlagMempoolCacheSize + const FlagMempoolCheckTxCost + const FlagMempoolEnableDeleteMinGPTx + const FlagMempoolFlush + const FlagMempoolForceRecheckGap + const FlagMempoolRecheck + const FlagMempoolSize + const FlagNodeKeyWhitelist + const FlagPGUAdjustment + const FlagPGUConcurrency + const FlagPGUPercentageThreshold + const FlagPGUPersist + const FlagPendingPoolBlacklist + 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 GetChainMaxGasUsedPerBlock() int64 + func IsPruningOptionNothing() bool + func PprofDownload(context *server.Context) + func RegisterDynamicConfig(logger log.Logger) + type ApolloClient struct + Namespace string + func NewApolloClient(brczeroConf *BRCZeroConfig) *ApolloClient + func (a *ApolloClient) LoadConfig() (loaded bool) + type BRCZeroConfig struct + func GetBRCZeroConfig() *BRCZeroConfig + func NewBRCZeroConfig() *BRCZeroConfig + func (c *BRCZeroConfig) GetActiveVC() bool + func (c *BRCZeroConfig) GetBlockCompressFlag() int + func (c *BRCZeroConfig) GetBlockCompressType() int + func (c *BRCZeroConfig) GetBlockPartSize() int + func (c *BRCZeroConfig) GetCommitGapHeight() int64 + func (c *BRCZeroConfig) GetCommitGapOffset() int64 + func (c *BRCZeroConfig) GetCsTimeoutCommit() time.Duration + func (c *BRCZeroConfig) GetCsTimeoutPrecommit() time.Duration + func (c *BRCZeroConfig) GetCsTimeoutPrecommitDelta() time.Duration + func (c *BRCZeroConfig) GetCsTimeoutPrevote() time.Duration + func (c *BRCZeroConfig) GetCsTimeoutPrevoteDelta() time.Duration + func (c *BRCZeroConfig) GetCsTimeoutPropose() time.Duration + func (c *BRCZeroConfig) GetCsTimeoutProposeDelta() time.Duration + func (c *BRCZeroConfig) GetDeliverTxsExecuteMode() int + func (c *BRCZeroConfig) GetDynamicGpCheckBlocks() int + func (c *BRCZeroConfig) GetDynamicGpCoefficient() int + func (c *BRCZeroConfig) GetDynamicGpMaxGasUsed() int64 + func (c *BRCZeroConfig) GetDynamicGpMaxTxNum() int64 + func (c *BRCZeroConfig) GetDynamicGpMode() int + func (c *BRCZeroConfig) GetDynamicGpWeight() int + func (c *BRCZeroConfig) GetEnableAnalyzer() bool + func (c *BRCZeroConfig) GetEnableDeleteMinGPTx() bool + func (c *BRCZeroConfig) GetEnableDynamicGp() bool + func (c *BRCZeroConfig) GetEnableHasBlockPartMsg() bool + func (c *BRCZeroConfig) GetEnablePGU() bool + func (c *BRCZeroConfig) GetEnableWtx() bool + func (c *BRCZeroConfig) GetGasLimitBuffer() uint64 + func (c *BRCZeroConfig) GetGcInterval() int + func (c *BRCZeroConfig) GetIavlAcNoBatch() bool + func (c *BRCZeroConfig) GetIavlCacheSize() int + func (c *BRCZeroConfig) GetIavlFSCacheSize() int64 + func (c *BRCZeroConfig) GetMaxGasUsedPerBlock() int64 + func (c *BRCZeroConfig) GetMaxSubscriptionClients() int + func (c *BRCZeroConfig) GetMaxTxNumPerBlock() int64 + func (c *BRCZeroConfig) GetMempoolCacheSize() int + func (c *BRCZeroConfig) GetMempoolCheckTxCost() bool + func (c *BRCZeroConfig) GetMempoolFlush() bool + func (c *BRCZeroConfig) GetMempoolForceRecheckGap() int64 + func (c *BRCZeroConfig) GetMempoolRecheck() bool + func (c *BRCZeroConfig) GetMempoolSize() int + func (c *BRCZeroConfig) GetNodeKeyWhitelist() []string + func (c *BRCZeroConfig) GetPGUAdjustment() float64 + func (c *BRCZeroConfig) GetPGUConcurrency() int + func (c *BRCZeroConfig) GetPGUPercentageThreshold() int64 + func (c *BRCZeroConfig) GetPGUPersist() bool + func (c *BRCZeroConfig) GetPendingPoolBlacklist() string + func (c *BRCZeroConfig) GetSentryAddrs() []string + func (c *BRCZeroConfig) SetActiveVC(value bool) + func (c *BRCZeroConfig) SetBlockCompressFlag(value int) + func (c *BRCZeroConfig) SetBlockCompressType(value int) + func (c *BRCZeroConfig) SetBlockPartSize(value int) + func (c *BRCZeroConfig) SetCommitGapHeight(value int64) + func (c *BRCZeroConfig) SetCommitGapOffset(value int64) + func (c *BRCZeroConfig) SetCsTimeoutCommit(value time.Duration) + func (c *BRCZeroConfig) SetCsTimeoutPrecommit(value time.Duration) + func (c *BRCZeroConfig) SetCsTimeoutPrecommitDelta(value time.Duration) + func (c *BRCZeroConfig) SetCsTimeoutPrevote(value time.Duration) + func (c *BRCZeroConfig) SetCsTimeoutPrevoteDelta(value time.Duration) + func (c *BRCZeroConfig) SetCsTimeoutPropose(value time.Duration) + func (c *BRCZeroConfig) SetCsTimeoutProposeDelta(value time.Duration) + func (c *BRCZeroConfig) SetDeliverTxsExecuteMode(mode int) + func (c *BRCZeroConfig) SetDynamicGpCheckBlocks(value int) + func (c *BRCZeroConfig) SetDynamicGpCoefficient(value int) + func (c *BRCZeroConfig) SetDynamicGpMaxGasUsed(value int64) + func (c *BRCZeroConfig) SetDynamicGpMaxTxNum(value int64) + func (c *BRCZeroConfig) SetDynamicGpMode(value int) + func (c *BRCZeroConfig) SetDynamicGpWeight(value int) + func (c *BRCZeroConfig) SetEnableAnalyzer(value bool) + func (c *BRCZeroConfig) SetEnableDeleteMinGPTx(enable bool) + func (c *BRCZeroConfig) SetEnableDynamicGp(value bool) + func (c *BRCZeroConfig) SetEnableHasBlockPartMsg(value bool) + func (c *BRCZeroConfig) SetEnablePGU(value bool) + func (c *BRCZeroConfig) SetEnableWtx(value bool) + func (c *BRCZeroConfig) SetGasLimitBuffer(value uint64) + func (c *BRCZeroConfig) SetGcInterval(value int) + func (c *BRCZeroConfig) SetIavlAcNoBatch(value bool) + func (c *BRCZeroConfig) SetIavlCacheSize(value int) + func (c *BRCZeroConfig) SetIavlFSCacheSize(value int64) + func (c *BRCZeroConfig) SetMaxGasUsedPerBlock(value int64) + func (c *BRCZeroConfig) SetMaxSubscriptionClients(v int) + func (c *BRCZeroConfig) SetMaxTxNumPerBlock(value int64) + func (c *BRCZeroConfig) SetMempoolCacheSize(value int) + func (c *BRCZeroConfig) SetMempoolCheckTxCost(value bool) + func (c *BRCZeroConfig) SetMempoolFlush(value bool) + func (c *BRCZeroConfig) SetMempoolForceRecheckGap(value int64) + func (c *BRCZeroConfig) SetMempoolRecheck(value bool) + func (c *BRCZeroConfig) SetMempoolSize(value int) + func (c *BRCZeroConfig) SetNodeKeyWhitelist(value string) + func (c *BRCZeroConfig) SetPGUAdjustment(value float64) + func (c *BRCZeroConfig) SetPGUConcurrency(value int) + func (c *BRCZeroConfig) SetPGUPercentageThreshold(value int64) + func (c *BRCZeroConfig) SetPGUPersist(value bool) + func (c *BRCZeroConfig) SetPendingPoolBlacklist(v string) + func (c *BRCZeroConfig) SetSentryAddrs(value string) + type CustomChangeListener struct + func (c *CustomChangeListener) OnChange(changeEvent *storage.ChangeEvent) + func (c *CustomChangeListener) OnNewestChange(event *storage.FullChangeEvent) + type LocalClient struct + func NewLocalClient(path string, brczeroConf *BRCZeroConfig, logger log.Logger) (*LocalClient, error) + func (a *LocalClient) Close() error + func (a *LocalClient) Enable() (err error) + func (a *LocalClient) LoadConfig() (loaded bool) + type PporfConfig struct + func LoadPprofFromConfig() *PporfConfig