Commit ad13b402 authored by obscuren's avatar obscuren

Fixed race condition

parent ba43364f
...@@ -196,8 +196,8 @@ func (t *Trie) Update(key, value string) { ...@@ -196,8 +196,8 @@ func (t *Trie) Update(key, value string) {
} }
func (t *Trie) Get(key string) string { func (t *Trie) Get(key string) string {
t.mut.RLock() t.mut.Lock()
defer t.mut.RUnlock() defer t.mut.Unlock()
k := CompactHexDecode(key) k := CompactHexDecode(key)
c := ethutil.NewValue(t.getState(t.Root, k)) c := ethutil.NewValue(t.getState(t.Root, k))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment