From b9e83ec21a97f9f071d3adcb561b9ea19d9413d8 Mon Sep 17 00:00:00 2001 From: Wenshao Zhong <11510383@mail.sustc.edu.cn> Date: Thu, 15 Nov 2018 10:53:19 +0800 Subject: [PATCH] light: odrTrie tryUpdate should use update --- light/trie.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light/trie.go b/light/trie.go index c07e99461cb2..ab4e18b43eec 100644 --- a/light/trie.go +++ b/light/trie.go @@ -108,7 +108,7 @@ func (t *odrTrie) TryGet(key []byte) ([]byte, error) { func (t *odrTrie) TryUpdate(key, value []byte) error { key = crypto.Keccak256(key) return t.do(key, func() error { - return t.trie.TryDelete(key) + return t.trie.TryUpdate(key, value) }) }