good morning!!!!

Skip to content
Snippets Groups Projects
Commit ad13b402 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Fixed race condition

parent ba43364f
Branches
Tags
No related merge requests found
......@@ -196,8 +196,8 @@ func (t *Trie) Update(key, value string) {
}
func (t *Trie) Get(key string) string {
t.mut.RLock()
defer t.mut.RUnlock()
t.mut.Lock()
defer t.mut.Unlock()
k := CompactHexDecode(key)
c := ethutil.NewValue(t.getState(t.Root, k))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment