Browse Source

consensus: avert a data race in round state access

pull/8112/head
M. J. Fromberger 2 years ago
parent
commit
4f113694e1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      internal/consensus/common_test.go

+ 1
- 1
internal/consensus/common_test.go View File

@ -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()


Loading…
Cancel
Save