|
|
@ -530,13 +530,13 @@ func DefaultFuzzConnConfig() *FuzzConnConfig { |
|
|
|
|
|
|
|
// MempoolConfig defines the configuration options for the Tendermint mempool
|
|
|
|
type MempoolConfig struct { |
|
|
|
RootDir string `mapstructure:"home"` |
|
|
|
Recheck bool `mapstructure:"recheck"` |
|
|
|
Broadcast bool `mapstructure:"broadcast"` |
|
|
|
WalPath string `mapstructure:"wal_dir"` |
|
|
|
Size int `mapstructure:"size"` |
|
|
|
MaxBytes int64 `mapstructure:"max_bytes"` |
|
|
|
CacheSize int `mapstructure:"cache_size"` |
|
|
|
RootDir string `mapstructure:"home"` |
|
|
|
Recheck bool `mapstructure:"recheck"` |
|
|
|
Broadcast bool `mapstructure:"broadcast"` |
|
|
|
WalPath string `mapstructure:"wal_dir"` |
|
|
|
Size int `mapstructure:"size"` |
|
|
|
MaxTxsTotalBytes int64 `mapstructure:"max_txs_total_bytes"` |
|
|
|
CacheSize int `mapstructure:"cache_size"` |
|
|
|
} |
|
|
|
|
|
|
|
// DefaultMempoolConfig returns a default configuration for the Tendermint mempool
|
|
|
@ -547,9 +547,9 @@ func DefaultMempoolConfig() *MempoolConfig { |
|
|
|
WalPath: "", |
|
|
|
// Each signature verification takes .5ms, Size reduced until we implement
|
|
|
|
// ABCI Recheck
|
|
|
|
Size: 5000, |
|
|
|
MaxBytes: 1024 * 1024 * 1024, // 1GB
|
|
|
|
CacheSize: 10000, |
|
|
|
Size: 5000, |
|
|
|
MaxTxsTotalBytes: 1024 * 1024 * 1024, // 1GB
|
|
|
|
CacheSize: 10000, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -576,8 +576,8 @@ func (cfg *MempoolConfig) ValidateBasic() error { |
|
|
|
if cfg.Size < 0 { |
|
|
|
return errors.New("size can't be negative") |
|
|
|
} |
|
|
|
if cfg.MaxBytes < 0 { |
|
|
|
return errors.New("max_bytes can't be negative") |
|
|
|
if cfg.MaxTxsTotalBytes < 0 { |
|
|
|
return errors.New("max_txs_total_bytes can't be negative") |
|
|
|
} |
|
|
|
if cfg.CacheSize < 0 { |
|
|
|
return errors.New("cache_size can't be negative") |
|
|
|