mempool: cfg.CacheSize and expose InitWAL

This commit is contained in:
Ethan Buchman
2018-01-19 01:03:03 -05:00
parent 8171628ee5
commit f06cc6630b
5 changed files with 29 additions and 13 deletions
+1
View File
@@ -189,6 +189,7 @@ func NewNode(config *cfg.Config,
// Make MempoolReactor
mempoolLogger := logger.With("module", "mempool")
mempool := mempl.NewMempool(config.Mempool, proxyApp.Mempool(), state.LastBlockHeight)
mempool.InitWAL() // no need to have the mempool wal during tests
mempool.SetLogger(mempoolLogger)
mempoolReactor := mempl.NewMempoolReactor(config.Mempool, mempool)
mempoolReactor.SetLogger(mempoolLogger)