diff --git a/consensus/state_test.go b/consensus/state_test.go index 9358a0ec1..4fb22d8df 100644 --- a/consensus/state_test.go +++ b/consensus/state_test.go @@ -1918,6 +1918,11 @@ func proposeBlock(t *testing.T, cs *State, round int, vssMap map[crypto.PubKey]* if err := cs.SetProposalAndBlock(proposal, newBlock, blockParts, "some peer"); err != nil { t.Fatal(err) } + + assert.Equal(t, + cs.Validators.SelectProposer(cs.state.LastProofHash, cs.Height, round).Address, + newBlock.ProposerAddress) + return types.BlockID{Hash: newBlock.Hash(), PartsHeader: blockParts.Header()} }