Browse Source

consensus: avert a data race in round state access (#8112)

pull/8118/head
M. J. Fromberger 3 years ago
committed by GitHub
parent
commit
9b87606dee
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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