evidence: manage and initialize state objects more clearly in the pool (#8080)

This commit is contained in:
Sam Kleinman
2022-03-07 14:26:58 -05:00
committed by GitHub
parent 2df5c85a8d
commit 01266881b8
8 changed files with 269 additions and 255 deletions

View File

@@ -297,8 +297,7 @@ func TestCreateProposalBlock(t *testing.T) {
// Make EvidencePool
evidenceDB := dbm.NewMemDB()
blockStore := store.NewBlockStore(dbm.NewMemDB())
evidencePool, err := evidence.NewPool(logger, evidenceDB, stateStore, blockStore, evidence.NopMetrics())
require.NoError(t, err)
evidencePool := evidence.NewPool(logger, evidenceDB, stateStore, blockStore, evidence.NopMetrics(), nil)
// fill the evidence pool with more evidence
// than can fit in a block