Versions in this module Expand all Collapse all v0 v0.8.14 Sep 15, 2021 Changes in this version + const BlockchainV0 + const BlockchainV2 + const DefaultDirPerm + const DefaultLogLevel + const FuzzModeDelay + const FuzzModeDrop + const MempoolV0 + const MempoolV1 + const ModeFull + const ModeSeed + const ModeValidator + var DefaultTendermintDir = ".tendermint" + func DefaultDBProvider(ctx *DBContext) (db.DB, error) + func EnsureRoot(rootDir string) + func WriteConfigFile(rootDir string, config *Config) + type BaseConfig struct + ABCI string + DBBackend string + DBPath string + FastSyncMode bool + FilterPeers bool + Genesis string + LogFormat string + LogLevel string + Mode string + Moniker string + NodeKey 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) LoadNodeKeyID() (types.NodeID, error) + func (cfg BaseConfig) LoadOrGenNodeKeyID() (types.NodeID, error) + func (cfg BaseConfig) NodeKeyFile() string + func (cfg BaseConfig) ValidateBasic() error + type Config struct + Consensus *ConsensusConfig + FastSync *FastSyncConfig + Instrumentation *InstrumentationConfig + Mempool *MempoolConfig + P2P *P2PConfig + PrivValidator *PrivValidatorConfig + RPC *RPCConfig + StateSync *StateSyncConfig + TxIndex *TxIndexConfig + func DefaultConfig() *Config + func DefaultValidatorConfig() *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 + 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) (db.DB, error) + type FastSyncConfig struct + Version string + func DefaultFastSyncConfig() *FastSyncConfig + func TestFastSyncConfig() *FastSyncConfig + func (cfg *FastSyncConfig) ValidateBasic() error + 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 + KeepInvalidTxsInCache bool + MaxBatchBytes int + MaxTxBytes int + MaxTxsBytes int64 + Recheck bool + RootDir string + Size int + TTLDuration time.Duration + TTLNumBlocks int64 + Version string + func DefaultMempoolConfig() *MempoolConfig + func TestMempoolConfig() *MempoolConfig + func (cfg *MempoolConfig) ValidateBasic() error + type P2PConfig struct + AddrBook string + AddrBookStrict bool + AllowDuplicateIP bool + BootstrapPeers string + DialTimeout time.Duration + DisableLegacy bool + ExternalAddress string + FlushThrottleTimeout time.Duration + HandshakeTimeout time.Duration + ListenAddress string + MaxConnections uint16 + MaxIncomingConnectionAttempts uint + MaxNumInboundPeers int + MaxNumOutboundPeers int + MaxPacketMsgPayloadSize int + PersistentPeers string + PersistentPeersMaxDialPeriod time.Duration + PexReactor bool + PrivatePeerIDs string + QueueType string + RecvRate int64 + RootDir string + Seeds string + SendRate int64 + TestDialFail bool + UPNP bool + UnconditionalPeerIDs string + func DefaultP2PConfig() *P2PConfig + func TestP2PConfig() *P2PConfig + func (cfg *P2PConfig) AddrBookFile() string + func (cfg *P2PConfig) ValidateBasic() error + type PrivValidatorConfig struct + ClientCertificate string + ClientKey string + Key string + ListenAddr string + RootCA string + RootDir string + State string + func DefaultPrivValidatorConfig() *PrivValidatorConfig + func (cfg *PrivValidatorConfig) AreSecurityOptionsPresent() bool + func (cfg *PrivValidatorConfig) ClientCertificateFile() string + func (cfg *PrivValidatorConfig) ClientKeyFile() string + func (cfg *PrivValidatorConfig) KeyFile() string + func (cfg *PrivValidatorConfig) RootCAFile() string + func (cfg *PrivValidatorConfig) StateFile() string + 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 + PprofListenAddress string + 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 ServiceProvider func(*Config, log.Logger) (service.Service, error) + type StateSyncConfig struct + ChunkRequestTimeout time.Duration + DiscoveryTime time.Duration + Enable bool + Fetchers int32 + 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 + PsqlConn string + func DefaultTxIndexConfig() *TxIndexConfig + func TestTxIndexConfig() *TxIndexConfig