Versions in this module Expand all Collapse all v0 v0.1.7 Jun 25, 2023 v0.1.6 Jun 15, 2023 v0.1.5 Jun 6, 2023 v0.1.4 Jun 2, 2023 Changes in this version type IDynamicConfig + GetMaxSubscriptionClients func() int + GetPGUConcurrency func() int + GetPGUPercentageThreshold func() int64 + GetPGUPersist func() bool type MockDynamicConfig + func (d *MockDynamicConfig) SetMaxSubscriptionClients(value int) + func (d MockDynamicConfig) GetMaxSubscriptionClients() int + func (d MockDynamicConfig) GetPGUConcurrency() int + func (d MockDynamicConfig) GetPGUPercentageThreshold() int64 + func (d MockDynamicConfig) GetPGUPersist() bool v0.1.3 May 18, 2023 v0.1.2 May 16, 2023 Changes in this version type IDynamicConfig + GetGasLimitBuffer func() uint64 type MockDynamicConfig + func (d MockDynamicConfig) GetGasLimitBuffer() uint64 v0.1.1 Mar 29, 2023 v0.1.0 Mar 27, 2023 Changes in this version + const DefaultAPIAddress + const DefaultDirPerm + const DefaultGRPCAddress + const DefaultGRPCMaxRecvMsgSize + const DefaultGRPCMaxSendMsgSize + const DefaultGRPCWebAddress + const FuzzModeDelay + const FuzzModeDrop + const LogFormatJSON + const LogFormatPlain + var DefaultLogPath = os.ExpandEnv(system.ServerHome) + var DefaultTendermintDir = ".tendermint" + func DefaultLogLevel() string + func DefaultPackageLogLevels() string + func EnsureRoot(rootDir string) + func SetDynamicConfig(c IDynamicConfig) + func WriteConfigFile(configFilePath string, config *Config) + type BaseConfig struct + ABCI string + AutoFastSync bool + DBBackend string + DBPath string + FastSyncMode bool + FilterPeers bool + Genesis string + LogFile string + LogFormat string + LogLevel string + LogStdout bool + Moniker string + NodeKey string + PrivValidatorKey string + PrivValidatorListenAddr string + PrivValidatorState string + ProfListenAddress string + ProxyApp string + RootDir string + func DefaultBaseConfig() BaseConfig + func TestBaseConfig() BaseConfig + func (cfg BaseConfig) ChainID() string + func (cfg BaseConfig) DBDir() string + func (cfg BaseConfig) GenesisFile() string + func (cfg BaseConfig) NodeKeyFile() string + func (cfg BaseConfig) PrivValidatorKeyFile() string + func (cfg BaseConfig) PrivValidatorStateFile() string + func (cfg BaseConfig) ValidateBasic() error + type Config struct + Consensus *ConsensusConfig + FastSync *FastSyncConfig + GRPC GRPCConfig + Instrumentation *InstrumentationConfig + Mempool *MempoolConfig + P2P *P2PConfig + RPC *RPCConfig + TxIndex *TxIndexConfig + func DefaultConfig() *Config + func ResetTestRoot(testName string) *Config + func ResetTestRootWithChainID(testName string, chainID string) *Config + func TestConfig() *Config + func (cfg *Config) SetRoot(root string) *Config + func (cfg *Config) ValidateBasic() error + type ConsensusConfig struct + CreateEmptyBlocks bool + CreateEmptyBlocksInterval time.Duration + PeerGossipSleepDuration time.Duration + PeerQueryMaj23SleepDuration time.Duration + RootDir string + SkipTimeoutCommit bool + TimeoutCommit time.Duration + TimeoutConsensus time.Duration + TimeoutPrecommit time.Duration + TimeoutPrecommitDelta time.Duration + TimeoutPrevote time.Duration + TimeoutPrevoteDelta time.Duration + TimeoutPropose time.Duration + TimeoutProposeDelta time.Duration + TimeoutToFastSync time.Duration + Waiting bool + WalPath string + func DefaultConsensusConfig() *ConsensusConfig + func TestConsensusConfig() *ConsensusConfig + func (cfg *ConsensusConfig) Commit(t time.Time) time.Time + func (cfg *ConsensusConfig) Precommit(round int) time.Duration + func (cfg *ConsensusConfig) Prevote(round int) time.Duration + func (cfg *ConsensusConfig) Propose(round int) time.Duration + func (cfg *ConsensusConfig) SetWalFile(walFile string) + func (cfg *ConsensusConfig) ValidateBasic() error + func (cfg *ConsensusConfig) WaitForTxs() bool + func (cfg *ConsensusConfig) WalFile() string + type FastSyncConfig struct + Version string + func DefaultFastSyncConfig() *FastSyncConfig + func TestFastSyncConfig() *FastSyncConfig + func (cfg *FastSyncConfig) ValidateBasic() error + type FuzzConnConfig struct + MaxDelay time.Duration + Mode int + ProbDropConn float64 + ProbDropRW float64 + ProbSleep float64 + func DefaultFuzzConnConfig() *FuzzConnConfig + type GRPCConfig struct + Address string + Enable bool + MaxRecvMsgSize int + MaxSendMsgSize int + func DefaultGRPCConfig() GRPCConfig + type IDynamicConfig interface + GetCommitGapOffset func() int64 + GetCsTimeoutCommit func() time.Duration + GetCsTimeoutPrecommit func() time.Duration + GetCsTimeoutPrecommitDelta func() time.Duration + GetCsTimeoutPrevote func() time.Duration + GetCsTimeoutPrevoteDelta func() time.Duration + GetCsTimeoutPropose func() time.Duration + GetCsTimeoutProposeDelta func() time.Duration + GetDeliverTxsExecuteMode func() int + GetDynamicGpCheckBlocks func() int + GetDynamicGpMaxGasUsed func() int64 + GetDynamicGpMaxTxNum func() int64 + GetDynamicGpMode func() int + GetDynamicGpWeight func() int + GetEnableDeleteMinGPTx func() bool + GetEnableHasBlockPartMsg func() bool + GetEnablePGU func() bool + GetEnableWtx func() bool + GetIavlAcNoBatch func() bool + GetMaxGasUsedPerBlock func() int64 + GetMaxTxNumPerBlock func() int64 + GetMempoolCacheSize func() int + GetMempoolCheckTxCost func() bool + GetMempoolFlush func() bool + GetMempoolForceRecheckGap func() int64 + GetMempoolRecheck func() bool + GetMempoolSize func() int + GetNodeKeyWhitelist func() []string + GetPGUAdjustment func() float64 + GetSentryAddrs func() []string + var DynamicConfig IDynamicConfig = MockDynamicConfig{} + type InstrumentationConfig struct + MaxOpenConnections int + Namespace string + Prometheus bool + PrometheusListenAddr string + func DefaultInstrumentationConfig() *InstrumentationConfig + func TestInstrumentationConfig() *InstrumentationConfig + func (cfg *InstrumentationConfig) ValidateBasic() error + type MempoolConfig struct + Broadcast bool + CacheSize int + EnableDeleteMinGPTx bool + EnablePendingPool bool + ForceRecheckGap int64 + MaxGasUsedPerBlock int64 + MaxTxBytes int + MaxTxNumPerBlock int64 + MaxTxsBytes int64 + NodeKeyWhitelist []string + PendingPoolMaxTxPerAddress int + PendingPoolPeriod int + PendingPoolReserveBlocks int + PendingPoolSize int + PendingRemoveEvent bool + Recheck bool + RootDir string + Sealed bool + Size int + SortTxByGp bool + TxPriceBump uint64 + func DefaultMempoolConfig() *MempoolConfig + func TestMempoolConfig() *MempoolConfig + func (cfg *MempoolConfig) GetNodeKeyWhitelist() []string + func (cfg *MempoolConfig) ValidateBasic() error + type MockDynamicConfig struct + func (d *MockDynamicConfig) SetDynamicGpMaxGasUsed(value int64) + func (d *MockDynamicConfig) SetDynamicGpMaxTxNum(value int64) + func (d *MockDynamicConfig) SetDynamicGpMode(value int) + func (d *MockDynamicConfig) SetEnableDeleteMinGPTx(enable bool) + func (d MockDynamicConfig) GetCommitGapOffset() int64 + func (d MockDynamicConfig) GetCsTimeoutCommit() time.Duration + func (d MockDynamicConfig) GetCsTimeoutPrecommit() time.Duration + func (d MockDynamicConfig) GetCsTimeoutPrecommitDelta() time.Duration + func (d MockDynamicConfig) GetCsTimeoutPrevote() time.Duration + func (d MockDynamicConfig) GetCsTimeoutPrevoteDelta() time.Duration + func (d MockDynamicConfig) GetCsTimeoutPropose() time.Duration + func (d MockDynamicConfig) GetCsTimeoutProposeDelta() time.Duration + func (d MockDynamicConfig) GetDeliverTxsExecuteMode() int + func (d MockDynamicConfig) GetDynamicGpCheckBlocks() int + func (d MockDynamicConfig) GetDynamicGpMaxGasUsed() int64 + func (d MockDynamicConfig) GetDynamicGpMaxTxNum() int64 + func (d MockDynamicConfig) GetDynamicGpMode() int + func (d MockDynamicConfig) GetDynamicGpWeight() int + func (d MockDynamicConfig) GetEnableDeleteMinGPTx() bool + func (d MockDynamicConfig) GetEnableHasBlockPartMsg() bool + func (d MockDynamicConfig) GetEnablePGU() bool + func (d MockDynamicConfig) GetEnableWtx() bool + func (d MockDynamicConfig) GetIavlAcNoBatch() bool + func (d MockDynamicConfig) GetMaxGasUsedPerBlock() int64 + func (d MockDynamicConfig) GetMaxTxNumPerBlock() int64 + func (d MockDynamicConfig) GetMempoolCacheSize() int + func (d MockDynamicConfig) GetMempoolCheckTxCost() bool + func (d MockDynamicConfig) GetMempoolFlush() bool + func (d MockDynamicConfig) GetMempoolForceRecheckGap() int64 + func (d MockDynamicConfig) GetMempoolRecheck() bool + func (d MockDynamicConfig) GetMempoolSize() int + func (d MockDynamicConfig) GetNodeKeyWhitelist() []string + func (d MockDynamicConfig) GetPGUAdjustment() float64 + func (d MockDynamicConfig) GetSentryAddrs() []string + type P2PConfig struct + AddrBook string + AddrBookStrict bool + AllowDuplicateIP bool + DialTimeout time.Duration + ExternalAddress string + FlushThrottleTimeout time.Duration + HandshakeTimeout time.Duration + ListenAddress string + MaxNumInboundPeers int + MaxNumOutboundPeers int + MaxPacketMsgPayloadSize int + PersistentPeers string + PersistentPeersMaxDialPeriod time.Duration + PexReactor bool + PrivatePeerIDs string + RecvRate int64 + RootDir string + SeedMode bool + Seeds string + SendRate int64 + TestDialFail bool + TestFuzz bool + TestFuzzConfig *FuzzConnConfig + UPNP bool + UnconditionalPeerIDs string + func DefaultP2PConfig() *P2PConfig + func TestP2PConfig() *P2PConfig + func (cfg *P2PConfig) AddrBookFile() string + func (cfg *P2PConfig) ValidateBasic() error + type RPCConfig struct + CORSAllowedHeaders []string + CORSAllowedMethods []string + CORSAllowedOrigins []string + GRPCListenAddress string + GRPCMaxOpenConnections int + ListenAddress string + MaxBodyBytes int64 + MaxHeaderBytes int + MaxOpenConnections int + MaxSubscriptionClients int + MaxSubscriptionsPerClient int + RootDir string + TLSCertFile string + TLSKeyFile string + TimeoutBroadcastTxCommit time.Duration + Unsafe bool + func DefaultRPCConfig() *RPCConfig + func TestRPCConfig() *RPCConfig + func (cfg *RPCConfig) IsCorsEnabled() bool + func (cfg *RPCConfig) ValidateBasic() error + func (cfg RPCConfig) CertFile() string + func (cfg RPCConfig) IsTLSEnabled() bool + func (cfg RPCConfig) KeyFile() string + type TxIndexConfig struct + IndexAllKeys bool + IndexKeys string + Indexer string + func DefaultTxIndexConfig() *TxIndexConfig + func TestTxIndexConfig() *TxIndexConfig