state: avoid premature genericism (#8224)

This commit is contained in:
Sam Kleinman
2022-03-31 09:10:09 -04:00
committed by GitHub
parent d1722c9c10
commit 6af23ff757
13 changed files with 31 additions and 30 deletions

View File

@@ -289,7 +289,7 @@ func makeNode(
evPool,
blockStore,
eventBus,
sm.BlockExecutorWithMetrics(nodeMetrics.state),
nodeMetrics.state,
)
// Determine whether we should do block sync. This must happen after the handshake, since the

View File

@@ -333,6 +333,7 @@ func TestCreateProposalBlock(t *testing.T) {
evidencePool,
blockStore,
eventBus,
sm.NopMetrics(),
)
commit := types.NewCommit(height-1, 0, types.BlockID{}, nil)
@@ -412,6 +413,7 @@ func TestMaxTxsProposalBlockSize(t *testing.T) {
sm.EmptyEvidencePool{},
blockStore,
eventBus,
sm.NopMetrics(),
)
commit := types.NewCommit(height-1, 0, types.BlockID{}, nil)
@@ -487,6 +489,7 @@ func TestMaxProposalBlockSize(t *testing.T) {
sm.EmptyEvidencePool{},
blockStore,
eventBus,
sm.NopMetrics(),
)
blockID := types.BlockID{