mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 21:36:26 +00:00
types: check if nil or empty valset (#5167)
Solves #5138 in the way that if a validatorSet is nil or empty it will not try to transform it to protobug Co-authored-by: Callum Michael Waters <cmwaters19@gmail.com>
This commit is contained in:
@@ -167,7 +167,7 @@ func TestByzantinePrevoteEquivocation(t *testing.T) {
|
||||
msg := <-blocksSubs[j].Out()
|
||||
block := msg.Data().(types.EventDataNewBlock).Block
|
||||
// assert that we have evidence
|
||||
assert.True(t, len(block.Evidence.Evidence) == 1)
|
||||
require.True(t, len(block.Evidence.Evidence) == 1)
|
||||
// and that the evidence is of type DuplicateVoteEvidence
|
||||
ev, ok := block.Evidence.Evidence[0].(*types.DuplicateVoteEvidence)
|
||||
assert.True(t, ok)
|
||||
|
||||
Reference in New Issue
Block a user