Browse Source

Fix data race. (#8105)

Original repro:
  go test -run TestStateFullRound1 -race -count=500 ./internal/consensus
pull/8112/head
M. J. Fromberger 2 years ago
committed by GitHub
parent
commit
5fb791e020
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

@ -291,7 +291,7 @@ func validatePrevote(t *testing.T, cs *State, round int32, privVal *validatorStu
}
func validateLastPrecommit(t *testing.T, cs *State, privVal *validatorStub, blockHash []byte) {
votes := cs.LastCommit
votes := cs.GetRoundState().LastCommit
pv, err := privVal.GetPubKey(context.Background())
require.NoError(t, err)
address := pv.Address()


Loading…
Cancel
Save