config

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

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 PprofDownload

func PprofDownload(context *server.Context)

PprofDownload auto dump pprof

func RegisterDynamicConfig

func RegisterDynamicConfig(logger log.Logger)

Types

type ApolloClient

type ApolloClient struct {
	Namespace string
	*agollo.Client
	// contains filtered or unexported fields
}

func NewApolloClient

func NewApolloClient(furycConf *FurycConfig) *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 FurycConfig

type FurycConfig struct {
	// contains filtered or unexported fields
}

func GetFurycConfig

func GetFurycConfig() *FurycConfig

func NewFurycConfig

func NewFurycConfig() *FurycConfig

func (*FurycConfig) GetActiveVC

func (c *FurycConfig) GetActiveVC() bool

func (*FurycConfig) GetBlockCompressFlag

func (c *FurycConfig) GetBlockCompressFlag() int

func (*FurycConfig) GetBlockCompressType

func (c *FurycConfig) GetBlockCompressType() int

func (*FurycConfig) GetBlockPartSize

func (c *FurycConfig) GetBlockPartSize() int

func (*FurycConfig) GetCommitGapHeight

func (c *FurycConfig) GetCommitGapHeight() int64

func (*FurycConfig) GetCommitGapOffset

func (c *FurycConfig) GetCommitGapOffset() int64

func (*FurycConfig) GetCsTimeoutCommit

func (c *FurycConfig) GetCsTimeoutCommit() time.Duration

func (*FurycConfig) GetCsTimeoutPrecommit

func (c *FurycConfig) GetCsTimeoutPrecommit() time.Duration

func (*FurycConfig) GetCsTimeoutPrecommitDelta

func (c *FurycConfig) GetCsTimeoutPrecommitDelta() time.Duration

func (*FurycConfig) GetCsTimeoutPrevote

func (c *FurycConfig) GetCsTimeoutPrevote() time.Duration

func (*FurycConfig) GetCsTimeoutPrevoteDelta

func (c *FurycConfig) GetCsTimeoutPrevoteDelta() time.Duration

func (*FurycConfig) GetCsTimeoutPropose

func (c *FurycConfig) GetCsTimeoutPropose() time.Duration

func (*FurycConfig) GetCsTimeoutProposeDelta

func (c *FurycConfig) GetCsTimeoutProposeDelta() time.Duration

func (*FurycConfig) GetDeliverTxsExecuteMode

func (c *FurycConfig) GetDeliverTxsExecuteMode() int

func (*FurycConfig) GetDynamicGpCheckBlocks

func (c *FurycConfig) GetDynamicGpCheckBlocks() int

func (*FurycConfig) GetDynamicGpCoefficient

func (c *FurycConfig) GetDynamicGpCoefficient() int

func (*FurycConfig) GetDynamicGpMaxGasUsed

func (c *FurycConfig) GetDynamicGpMaxGasUsed() int64

func (*FurycConfig) GetDynamicGpMaxTxNum

func (c *FurycConfig) GetDynamicGpMaxTxNum() int64

func (*FurycConfig) GetDynamicGpMode

func (c *FurycConfig) GetDynamicGpMode() int

func (*FurycConfig) GetDynamicGpWeight

func (c *FurycConfig) GetDynamicGpWeight() int

func (*FurycConfig) GetEnableAnalyzer

func (c *FurycConfig) GetEnableAnalyzer() bool

func (*FurycConfig) GetEnableDeleteMinGPTx

func (c *FurycConfig) GetEnableDeleteMinGPTx() bool

func (*FurycConfig) GetEnableDynamicGp

func (c *FurycConfig) GetEnableDynamicGp() bool

func (*FurycConfig) GetEnableHasBlockPartMsg

func (c *FurycConfig) GetEnableHasBlockPartMsg() bool

func (*FurycConfig) GetEnablePGU

func (c *FurycConfig) GetEnablePGU() bool

func (*FurycConfig) GetEnableWtx

func (c *FurycConfig) GetEnableWtx() bool

func (*FurycConfig) GetGasLimitBuffer

func (c *FurycConfig) GetGasLimitBuffer() uint64

func (*FurycConfig) GetGcInterval

func (c *FurycConfig) GetGcInterval() int

func (*FurycConfig) GetIavlAcNoBatch

func (c *FurycConfig) GetIavlAcNoBatch() bool

func (*FurycConfig) GetIavlCacheSize

func (c *FurycConfig) GetIavlCacheSize() int

func (*FurycConfig) GetIavlFSCacheSize

func (c *FurycConfig) GetIavlFSCacheSize() int64

func (*FurycConfig) GetMaxGasUsedPerBlock

func (c *FurycConfig) GetMaxGasUsedPerBlock() int64

func (*FurycConfig) GetMaxTxNumPerBlock

func (c *FurycConfig) GetMaxTxNumPerBlock() int64

func (*FurycConfig) GetMempoolCacheSize

func (c *FurycConfig) GetMempoolCacheSize() int

func (*FurycConfig) GetMempoolCheckTxCost

func (c *FurycConfig) GetMempoolCheckTxCost() bool

func (*FurycConfig) GetMempoolFlush

func (c *FurycConfig) GetMempoolFlush() bool

func (*FurycConfig) GetMempoolForceRecheckGap

func (c *FurycConfig) GetMempoolForceRecheckGap() int64

func (*FurycConfig) GetMempoolRecheck

func (c *FurycConfig) GetMempoolRecheck() bool

func (*FurycConfig) GetMempoolSize

func (c *FurycConfig) GetMempoolSize() int

func (*FurycConfig) GetNodeKeyWhitelist

func (c *FurycConfig) GetNodeKeyWhitelist() []string

func (*FurycConfig) GetPGUAdjustment

func (c *FurycConfig) GetPGUAdjustment() float64

func (*FurycConfig) GetSentryAddrs

func (c *FurycConfig) GetSentryAddrs() []string

func (*FurycConfig) SetActiveVC

func (c *FurycConfig) SetActiveVC(value bool)

func (*FurycConfig) SetBlockCompressFlag

func (c *FurycConfig) SetBlockCompressFlag(value int)

func (*FurycConfig) SetBlockCompressType

func (c *FurycConfig) SetBlockCompressType(value int)

func (*FurycConfig) SetBlockPartSize

func (c *FurycConfig) SetBlockPartSize(value int)

func (*FurycConfig) SetCommitGapHeight

func (c *FurycConfig) SetCommitGapHeight(value int64)

func (*FurycConfig) SetCommitGapOffset

func (c *FurycConfig) SetCommitGapOffset(value int64)

func (*FurycConfig) SetCsTimeoutCommit

func (c *FurycConfig) SetCsTimeoutCommit(value time.Duration)

func (*FurycConfig) SetCsTimeoutPrecommit

func (c *FurycConfig) SetCsTimeoutPrecommit(value time.Duration)

func (*FurycConfig) SetCsTimeoutPrecommitDelta

func (c *FurycConfig) SetCsTimeoutPrecommitDelta(value time.Duration)

func (*FurycConfig) SetCsTimeoutPrevote

func (c *FurycConfig) SetCsTimeoutPrevote(value time.Duration)

func (*FurycConfig) SetCsTimeoutPrevoteDelta

func (c *FurycConfig) SetCsTimeoutPrevoteDelta(value time.Duration)

func (*FurycConfig) SetCsTimeoutPropose

func (c *FurycConfig) SetCsTimeoutPropose(value time.Duration)

func (*FurycConfig) SetCsTimeoutProposeDelta

func (c *FurycConfig) SetCsTimeoutProposeDelta(value time.Duration)

func (*FurycConfig) SetDeliverTxsExecuteMode

func (c *FurycConfig) SetDeliverTxsExecuteMode(mode int)

func (*FurycConfig) SetDynamicGpCheckBlocks

func (c *FurycConfig) SetDynamicGpCheckBlocks(value int)

func (*FurycConfig) SetDynamicGpCoefficient

func (c *FurycConfig) SetDynamicGpCoefficient(value int)

func (*FurycConfig) SetDynamicGpMaxGasUsed

func (c *FurycConfig) SetDynamicGpMaxGasUsed(value int64)

func (*FurycConfig) SetDynamicGpMaxTxNum

func (c *FurycConfig) SetDynamicGpMaxTxNum(value int64)

func (*FurycConfig) SetDynamicGpMode

func (c *FurycConfig) SetDynamicGpMode(value int)

func (*FurycConfig) SetDynamicGpWeight

func (c *FurycConfig) SetDynamicGpWeight(value int)

func (*FurycConfig) SetEnableAnalyzer

func (c *FurycConfig) SetEnableAnalyzer(value bool)

func (*FurycConfig) SetEnableDeleteMinGPTx

func (c *FurycConfig) SetEnableDeleteMinGPTx(enable bool)

func (*FurycConfig) SetEnableDynamicGp

func (c *FurycConfig) SetEnableDynamicGp(value bool)

func (*FurycConfig) SetEnableHasBlockPartMsg

func (c *FurycConfig) SetEnableHasBlockPartMsg(value bool)

func (*FurycConfig) SetEnablePGU

func (c *FurycConfig) SetEnablePGU(value bool)

func (*FurycConfig) SetEnableWtx

func (c *FurycConfig) SetEnableWtx(value bool)

func (*FurycConfig) SetGasLimitBuffer

func (c *FurycConfig) SetGasLimitBuffer(value uint64)

func (*FurycConfig) SetGcInterval

func (c *FurycConfig) SetGcInterval(value int)

func (*FurycConfig) SetIavlAcNoBatch

func (c *FurycConfig) SetIavlAcNoBatch(value bool)

func (*FurycConfig) SetIavlCacheSize

func (c *FurycConfig) SetIavlCacheSize(value int)

func (*FurycConfig) SetIavlFSCacheSize

func (c *FurycConfig) SetIavlFSCacheSize(value int64)

func (*FurycConfig) SetMaxGasUsedPerBlock

func (c *FurycConfig) SetMaxGasUsedPerBlock(value int64)

func (*FurycConfig) SetMaxTxNumPerBlock

func (c *FurycConfig) SetMaxTxNumPerBlock(value int64)

func (*FurycConfig) SetMempoolCacheSize

func (c *FurycConfig) SetMempoolCacheSize(value int)

func (*FurycConfig) SetMempoolCheckTxCost

func (c *FurycConfig) SetMempoolCheckTxCost(value bool)

func (*FurycConfig) SetMempoolFlush

func (c *FurycConfig) SetMempoolFlush(value bool)

func (*FurycConfig) SetMempoolForceRecheckGap

func (c *FurycConfig) SetMempoolForceRecheckGap(value int64)

func (*FurycConfig) SetMempoolRecheck

func (c *FurycConfig) SetMempoolRecheck(value bool)

func (*FurycConfig) SetMempoolSize

func (c *FurycConfig) SetMempoolSize(value int)

func (*FurycConfig) SetNodeKeyWhitelist

func (c *FurycConfig) SetNodeKeyWhitelist(value string)

func (*FurycConfig) SetPGUAdjustment

func (c *FurycConfig) SetPGUAdjustment(value float64)

func (*FurycConfig) SetSentryAddrs

func (c *FurycConfig) SetSentryAddrs(value string)

type LocalClient

type LocalClient struct {
	// contains filtered or unexported fields
}

func NewLocalClient

func NewLocalClient(path string, furycConf *FurycConfig, logger log.Logger) (*LocalClient, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL