mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
fix: add missing lock
This commit is contained in:
parent
7cfff30ba3
commit
dac70fe3a4
1 changed files with 2 additions and 0 deletions
|
|
@ -58,6 +58,8 @@ func (w *Witness) fromExtWitness(ext *extWitness) error {
|
|||
for _, code := range ext.Codes {
|
||||
w.Codes[string(code)] = struct{}{}
|
||||
}
|
||||
w.lock.Lock()
|
||||
defer w.lock.Unlock()
|
||||
w.State = make(map[string]struct{}, len(ext.State))
|
||||
for _, node := range ext.State {
|
||||
w.State[string(node)] = struct{}{}
|
||||
|
|
|
|||
Loading…
Reference in a new issue