@@ -726,13 +726,14 @@ func (cfg *DBCacheConfig) ToGolevelDBOpt() *optPkg.Options {
726726
727727// MempoolConfig defines the configuration options for the Tendermint mempool
728728type MempoolConfig struct {
729- RootDir string `mapstructure:"home"`
730- Recheck bool `mapstructure:"recheck"`
731- Broadcast bool `mapstructure:"broadcast"`
732- WalPath string `mapstructure:"wal_dir"`
733- Size int `mapstructure:"size"`
734- MaxTxsBytes int64 `mapstructure:"max_txs_bytes"`
735- CacheSize int `mapstructure:"cache_size"`
729+ RootDir string `mapstructure:"home"`
730+ Recheck bool `mapstructure:"recheck"`
731+ Broadcast bool `mapstructure:"broadcast"`
732+ WalPath string `mapstructure:"wal_dir"`
733+ Size int `mapstructure:"size"`
734+ MaxTxsBytes int64 `mapstructure:"max_txs_bytes"`
735+ CacheSize int `mapstructure:"cache_size"`
736+ OnlyPersistent bool `mapstructure:"only_persistent"`
736737}
737738
738739// DefaultMempoolConfig returns a default configuration for the Tendermint mempool
@@ -743,9 +744,10 @@ func DefaultMempoolConfig() *MempoolConfig {
743744 WalPath : "" ,
744745 // Each signature verification takes .5ms, Size reduced until we implement
745746 // ABCI Recheck
746- Size : 5000 ,
747- MaxTxsBytes : 1024 * 1024 * 1024 , // 1GB
748- CacheSize : 10000 ,
747+ Size : 5000 ,
748+ MaxTxsBytes : 1024 * 1024 * 1024 , // 1GB
749+ CacheSize : 10000 ,
750+ OnlyPersistent : false ,
749751 }
750752}
751753
0 commit comments