evidence/pool_test: Inline slice construction

Signed-off-by: Thane Thomson <connect@thanethomson.com>
This commit is contained in:
Thane Thomson
2022-05-04 13:59:25 -04:00
parent 1667ed25ea
commit 0e8fc8e0b0

View File

@@ -587,14 +587,12 @@ func initializeBlockStore(db dbm.DB, state sm.State, valAddr []byte) (*store.Blo
}
func makeExtCommit(height int64, valAddr []byte) *types.ExtendedCommit {
extCommitSigs := []types.ExtendedCommitSig{{
return types.NewExtendedCommit(height, 0, types.BlockID{}, []types.ExtendedCommitSig{{
BlockIDFlag: types.BlockIDFlagCommit,
ValidatorAddress: valAddr,
Timestamp: defaultEvidenceTime,
Signature: []byte("Signature"),
}}
return types.NewExtendedCommit(height, 0, types.BlockID{}, extCommitSigs)
}})
}
func defaultTestPool(ctx context.Context, t *testing.T, height int64) (*evidence.Pool, types.MockPV, *eventbus.EventBus) {