From 9b87606dee099c72b1ea658acce283c09ee42f70 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 11 Mar 2022 11:16:19 -0800 Subject: [PATCH] consensus: avert a data race in round state access (#8112) --- internal/consensus/common_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/consensus/common_test.go b/internal/consensus/common_test.go index 8650e4d6b..c3f93d8c1 100644 --- a/internal/consensus/common_test.go +++ b/internal/consensus/common_test.go @@ -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()