diff --git a/evidence/pool.go b/evidence/pool.go index d425ab183..4b8a10103 100644 --- a/evidence/pool.go +++ b/evidence/pool.go @@ -712,6 +712,9 @@ func evMapKey(ev types.Evidence) string { } func (evpool *Pool) updateValToLastHeight(blockHeight int64, state sm.State) { + evpool.mtx.Lock() + defer evpool.mtx.Unlock() + // Update current validators & add new ones. for _, val := range state.Validators.Validators { evpool.valToLastHeight[string(val.Address)] = blockHeight