Versions in this module Expand all Collapse all v100 v100.2.4 Sep 4, 2024 v100.2.3 Sep 4, 2024 v100.2.2 Sep 4, 2024 v100.2.1 Sep 4, 2024 v100.2.0 Sep 4, 2024 v100.1.0 Sep 3, 2024 v100.0.4 Sep 3, 2024 v100.0.3 Sep 3, 2024 v100.0.2 Sep 3, 2024 v100.0.1 Sep 3, 2024 v100.0.0 Sep 3, 2024 Changes in this version + const DefaultAddrBookName + const DefaultCometDir + const DefaultConfigDir + const DefaultConfigFileName + const DefaultDataDir + const DefaultDirPerm + const DefaultGenesisJSONName + const DefaultLogLevel + const DefaultNodeKeyName + const DefaultPrivValKeyName + const DefaultPrivValStateName + const DefaultPruningInterval + const FuzzModeDelay + const FuzzModeDrop + const LogFormatJSON + const LogFormatPlain + const MempoolTypeFlood + const MempoolTypeNop + var ErrEmptyRPCServerEntry = errors.New("found empty rpc_servers entry") + var ErrInsufficientChunkRequestTimeout = errors.New(...) + var ErrInsufficientDiscoveryTime = errors.New("snapshot discovery time must be at least five seconds") + var ErrNotEnoughRPCServers = errors.New("at least two rpc_servers entries are required") + var ErrSubscriptionBufferSizeInvalid = fmt.Errorf("experimental_subscription_buffer_size must be >= %d", ...) + var ErrUnknownLogFormat = errors.New("unknown log_format (must be 'plain' or 'json')") + 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 + GRPC *GRPCConfig + 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 + PeerGossipIntraloopSleepDuration 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 DBContext struct + Config *Config + ID string + type DBProvider func(*DBContext) (dbm.DB, error) + type DataCompanionPruningConfig struct + Enabled bool + InitialBlockResultsRetainHeight int64 + InitialBlockRetainHeight int64 + func DefaultDataCompanionPruningConfig() *DataCompanionPruningConfig + func TestDataCompanionPruningConfig() *DataCompanionPruningConfig + func (cfg *DataCompanionPruningConfig) ValidateBasic() error + type ErrDeprecatedBlocksyncVersion struct + Allowed []string + Version string + func (e ErrDeprecatedBlocksyncVersion) Error() string + type ErrInSection struct + Err error + Section string + func (e ErrInSection) Error() string + func (e ErrInSection) Unwrap() error + type ErrUnknownBlocksyncVersion struct + Version string + func (e ErrUnknownBlocksyncVersion) Error() string + type FuzzConnConfig struct + MaxDelay time.Duration + Mode int + ProbDropConn float64 + ProbDropRW float64 + ProbSleep float64 + func DefaultFuzzConnConfig() *FuzzConnConfig + type GRPCBlockResultsServiceConfig struct + Enabled bool + func DefaultGRPCBlockResultsServiceConfig() *GRPCBlockResultsServiceConfig + type GRPCBlockServiceConfig struct + Enabled bool + func DefaultGRPCBlockServiceConfig() *GRPCBlockServiceConfig + func TestGRPCBlockServiceConfig() *GRPCBlockServiceConfig + type GRPCConfig struct + BlockResultsService *GRPCBlockResultsServiceConfig + BlockService *GRPCBlockServiceConfig + ListenAddress string + Privileged *GRPCPrivilegedConfig + VersionService *GRPCVersionServiceConfig + func DefaultGRPCConfig() *GRPCConfig + func TestGRPCConfig() *GRPCConfig + func (cfg *GRPCConfig) ValidateBasic() error + type GRPCPrivilegedConfig struct + ListenAddress string + PruningService *GRPCPruningServiceConfig + func DefaultGRPCPrivilegedConfig() *GRPCPrivilegedConfig + func TestGRPCPrivilegedConfig() *GRPCPrivilegedConfig + type GRPCPruningServiceConfig struct + Enabled bool + func DefaultGRPCPruningServiceConfig() *GRPCPruningServiceConfig + func TestGRPCPruningServiceConfig() *GRPCPruningServiceConfig + type GRPCVersionServiceConfig struct + Enabled bool + func DefaultGRPCVersionServiceConfig() *GRPCVersionServiceConfig + func TestGRPCVersionServiceConfig() *GRPCVersionServiceConfig + 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 + MaxTxBytes int + MaxTxsBytes int64 + Recheck bool + RecheckTimeout time.Duration + 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 PruningConfig struct + DataCompanion *DataCompanionPruningConfig + Interval time.Duration + func DefaultPruningConfig() *PruningConfig + func TestPruningConfig() *PruningConfig + func (cfg *PruningConfig) ValidateBasic() error + type RPCConfig struct + CORSAllowedHeaders []string + CORSAllowedMethods []string + CORSAllowedOrigins []string + CloseOnSlowClient bool + ListenAddress string + MaxBodyBytes int64 + MaxHeaderBytes int + MaxOpenConnections int + MaxRequestBatchSize 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 + Compact bool + CompactionInterval int64 + DiscardABCIResponses bool + ExperimentalKeyLayout string + GenesisHash string + Pruning *PruningConfig + func DefaultStorageConfig() *StorageConfig + func TestStorageConfig() *StorageConfig + func (cfg *StorageConfig) ValidateBasic() error + type TxIndexConfig struct + Indexer string + PsqlConn string + func DefaultTxIndexConfig() *TxIndexConfig + func TestTxIndexConfig() *TxIndexConfig Other modules containing this package github.com/KYVENetwork/cometbft/v34 github.com/KYVENetwork/cometbft/v37 github.com/KYVENetwork/cometbft/v38