Fix Prysm Runtime Data Races (#7770)

* handle state trie data races

* race fixes

* added proper locks

* fix gaz

* use thread-safe refs() function
This commit is contained in:
Raul Jordan
2020-11-10 20:57:07 -06:00
committed by GitHub
parent 9e9a172248
commit 4290ba416c
7 changed files with 28 additions and 15 deletions

View File

@@ -320,7 +320,7 @@ func TestService_markSynced(t *testing.T) {
assert.Equal(t, false, s.synced)
assert.Equal(t, true, s.Syncing())
assert.NoError(t, s.Status())
s.chainStarted = true
s.chainStarted.Set()
assert.ErrorContains(t, "syncing", s.Status())
expectedGenesisTime := time.Unix(358544700, 0)