mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 19:40:37 +00:00
lock state (#11796)
This commit is contained in:
parent
ce125b763c
commit
90d5f6097c
@ -889,6 +889,8 @@ func (b *BeaconState) resetFieldTrie(index nativetypes.FieldIndex, elements inte
|
||||
}
|
||||
|
||||
func finalizerCleanup(b *BeaconState) {
|
||||
b.lock.Lock()
|
||||
defer b.lock.Unlock()
|
||||
for field, v := range b.sharedFieldReferences {
|
||||
v.MinusRef()
|
||||
if b.stateFieldLeaves[field].FieldReference() != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user