fix data race and add changelog

This commit is contained in:
Callum Waters
2021-08-27 17:20:37 +02:00
parent 4c7f416c3f
commit e61145111b
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -523,7 +523,9 @@ func TestReactor_StateProviderP2P(t *testing.T) {
rts.reactor.cfg.TrustHeight = 1
rts.reactor.cfg.TrustHash = fmt.Sprintf("%X", chain[1].Hash())
ctx := context.Background()
rts.reactor.mtx.Lock()
err := rts.reactor.initStateProvider(ctx, factory.DefaultTestChainID, 1)
rts.reactor.mtx.Unlock()
require.NoError(t, err)
rts.reactor.syncer.stateProvider = rts.reactor.stateProvider