Skip to content

Commit d649356

Browse files
Update zk_trie_database.go
1 parent 5d29cf5 commit d649356

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

trie/zk_trie_database.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ func (l *ZktrieDatabase) Get(key []byte) ([]byte, error) {
6666
func (l *ZktrieDatabase) UpdatePreimage(preimage []byte, hashField *big.Int) {
6767
db := l.db
6868
if db.preimages != nil { // Ugly direct check but avoids the below write lock
69-
db.lock.Lock()
7069
// we must copy the input key
7170
db.preimages.insertPreimage(map[common.Hash][]byte{common.BytesToHash(hashField.Bytes()): common.CopyBytes(preimage)})
72-
db.lock.Unlock()
7371
}
7472
}
7573

0 commit comments

Comments
 (0)