Versions in this module Expand all Collapse all v0 v0.0.4 May 28, 2021 Changes in this version type MempoolConfig + KeepInvalidTxsInCache bool v0.0.3 May 28, 2021 v0.0.2 May 27, 2021 Changes in this version type ConsensusConfig + DoubleSignCheckHeight int64 type MempoolConfig + MaxBatchBytes int type RPCConfig + PprofListenAddress string type StateSyncConfig + DiscoveryTime time.Duration v0.0.1 May 27, 2021 Changes in this version + const DefaultDirPerm + const FuzzModeDelay + const FuzzModeDrop + const LogFormatJSON + const LogFormatPlain + var DefaultTendermintDir = ".tendermint" + func DefaultLogLevel() string + func DefaultPackageLogLevels() string + func EnsureRoot(rootDir string) + func WriteConfigFile(configFilePath string, config *Config) + type BaseConfig struct + ABCI string + DBBackend string + DBPath string + FastSyncMode bool + FilterPeers bool + Genesis string + LogFormat string + LogLevel string + 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 + Instrumentation *InstrumentationConfig + Mempool *MempoolConfig + P2P *P2PConfig + RPC *RPCConfig + StateSync *StateSyncConfig + 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 + TimeoutPrecommit time.Duration + TimeoutPrecommitDelta time.Duration + TimeoutPrevote time.Duration + TimeoutPrevoteDelta time.Duration + TimeoutPropose time.Duration + TimeoutProposeDelta time.Duration + WalPath string + func DefaultConsensusConfig() *ConsensusConfig + func TestConsensusConfig() *ConsensusConfig + func (cfg *ConsensusConfig) Commit(t time.Time) time.Time + func (cfg *ConsensusConfig) Precommit(round int32) time.Duration + func (cfg *ConsensusConfig) Prevote(round int32) time.Duration + func (cfg *ConsensusConfig) Propose(round int32) 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 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 + MaxTxBytes int + MaxTxsBytes int64 + Recheck bool + RootDir string + Size int + WalPath string + func DefaultMempoolConfig() *MempoolConfig + func TestMempoolConfig() *MempoolConfig + func (cfg *MempoolConfig) ValidateBasic() error + func (cfg *MempoolConfig) WalDir() string + func (cfg *MempoolConfig) WalEnabled() bool + 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 StateSyncConfig struct + Enable bool + RPCServers []string + TempDir string + TrustHash string + TrustHeight int64 + TrustPeriod time.Duration + func DefaultStateSyncConfig() *StateSyncConfig + func TestStateSyncConfig() *StateSyncConfig + func (cfg *StateSyncConfig) TrustHashBytes() []byte + func (cfg *StateSyncConfig) ValidateBasic() error + type TxIndexConfig struct + Indexer string + func DefaultTxIndexConfig() *TxIndexConfig + func TestTxIndexConfig() *TxIndexConfig