Versions in this module Expand all Collapse all v38 v38.0.4 Nov 25, 2024 v38.0.3 May 13, 2024 v38.0.2 Apr 18, 2024 v38.0.1 Apr 18, 2024 v38.0.0 Apr 18, 2024 Changes in this version + const DefaultAddrBookName + const DefaultConfigDir + const DefaultConfigFileName + const DefaultDataDir + const DefaultDirPerm + const DefaultGenesisJSONName + const DefaultLogLevel + const DefaultNodeKeyName + const DefaultPrivValKeyName + const DefaultPrivValStateName + const DefaultTendermintDir + const FuzzModeDelay + const FuzzModeDrop + const LogFormatJSON + const LogFormatPlain + const MempoolTypeFlood + const MempoolTypeNop + func DefaultDBProvider(ctx *DBContext) (dbm.DB, error) + func EnsureRoot(rootDir string) + func WriteConfigFile(configFilePath string, config *Config) + type BaseConfig struct + ABCI string + DBBackend string + DBPath string + FilterPeers bool + Genesis string + LogFormat string + LogLevel string + Moniker string + NodeKey string + PrivValidatorKey string + PrivValidatorListenAddr string + PrivValidatorState string + ProxyApp string + RootDir string + Version string + func DefaultBaseConfig() BaseConfig + func TestBaseConfig() BaseConfig + 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 BlockSyncConfig struct + Version string + func DefaultBlockSyncConfig() *BlockSyncConfig + func TestBlockSyncConfig() *BlockSyncConfig + func (cfg *BlockSyncConfig) ValidateBasic() error + type Config struct + BlockSync *BlockSyncConfig + Consensus *ConsensusConfig + Instrumentation *InstrumentationConfig + Mempool *MempoolConfig + P2P *P2PConfig + RPC *RPCConfig + StateSync *StateSyncConfig + Storage *StorageConfig + TxIndex *TxIndexConfig + func DefaultConfig() *Config + func TestConfig() *Config + func (cfg *Config) CheckDeprecated() []string + func (cfg *Config) SetRoot(root string) *Config + func (cfg *Config) ValidateBasic() error + type ConsensusConfig struct + CreateEmptyBlocks bool + CreateEmptyBlocksInterval time.Duration + DoubleSignCheckHeight int64 + 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 DBContext struct + Config *Config + ID string + type DBProvider func(*DBContext) (dbm.DB, 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) IsPrometheusEnabled() bool + func (cfg *InstrumentationConfig) ValidateBasic() error + type MempoolConfig struct + Broadcast bool + CacheSize int + ExperimentalMaxGossipConnectionsToNonPersistentPeers int + ExperimentalMaxGossipConnectionsToPersistentPeers int + KeepInvalidTxsInCache bool + MaxBatchBytes int + MaxTxBytes int + MaxTxsBytes int64 + Recheck bool + RootDir string + Size int + Type string + 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 + 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 + CloseOnSlowClient bool + GRPCListenAddress string + GRPCMaxOpenConnections int + ListenAddress string + MaxBodyBytes int64 + MaxHeaderBytes int + MaxOpenConnections int + MaxSubscriptionClients int + MaxSubscriptionsPerClient int + PprofListenAddress string + RootDir string + SubscriptionBufferSize int + TLSCertFile string + TLSKeyFile string + TimeoutBroadcastTxCommit time.Duration + Unsafe bool + WebSocketWriteBufferSize int + func DefaultRPCConfig() *RPCConfig + func TestRPCConfig() *RPCConfig + func (cfg *RPCConfig) IsCorsEnabled() bool + func (cfg *RPCConfig) IsPprofEnabled() bool + func (cfg *RPCConfig) ValidateBasic() error + func (cfg RPCConfig) CertFile() string + func (cfg RPCConfig) IsTLSEnabled() bool + func (cfg RPCConfig) KeyFile() string + type ServiceProvider func(context.Context, *Config, log.Logger) (service.Service, error) + type StateSyncConfig struct + ChunkFetchers int32 + ChunkRequestTimeout time.Duration + DiscoveryTime time.Duration + 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 StorageConfig struct + DiscardABCIResponses bool + func DefaultStorageConfig() *StorageConfig + func TestStorageConfig() *StorageConfig + type TxIndexConfig struct + Indexer string + PsqlConn string + func DefaultTxIndexConfig() *TxIndexConfig + func TestTxIndexConfig() *TxIndexConfig Other modules containing this package github.com/KYVENetwork/cometbft/v100 github.com/KYVENetwork/cometbft/v34 github.com/KYVENetwork/cometbft/v37