Skip to content

Commit

Permalink
consensus: avert a data race in round state access (tendermint#8112)
Browse files Browse the repository at this point in the history
  • Loading branch information
M. J. Fromberger authored Mar 11, 2022
1 parent 76ed7d7 commit 9b87606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/consensus/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func signAddVotes(
}

func validatePrevote(t *testing.T, cs *State, round int32, privVal *validatorStub, blockHash []byte) {
prevotes := cs.Votes.Prevotes(round)
prevotes := cs.GetRoundState().Votes.Prevotes(round)
pubKey, err := privVal.GetPubKey(context.Background())
require.NoError(t, err)
address := pubKey.Address()
Expand Down

0 comments on commit 9b87606

Please sign in to comment.