aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-27 06:08:29 +0800
committerobscuren <geffobscura@gmail.com>2014-06-27 06:08:29 +0800
commite3ad2a39699a4c33a3ee5ee0525552d1f1ecedfc (patch)
treeb0233ba1752ce44b323ef794eaf9fd1a5d631913
parent9d5a3f013121c319f9cf679d9afc4e40661a0284 (diff)
parent8119d77a21d3973fe6379c5d57f393dda8fce392 (diff)
downloaddexon-e3ad2a39699a4c33a3ee5ee0525552d1f1ecedfc.tar.gz
dexon-e3ad2a39699a4c33a3ee5ee0525552d1f1ecedfc.tar.zst
dexon-e3ad2a39699a4c33a3ee5ee0525552d1f1ecedfc.zip
Merge branch 'develop'
-rw-r--r--ethutil/trie.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethutil/trie.go b/ethutil/trie.go
index 0c1a6d260..18d0a5f0a 100644
--- a/ethutil/trie.go
+++ b/ethutil/trie.go
@@ -47,7 +47,7 @@ func (cache *Cache) Put(v interface{}) interface{} {
value := NewValue(v)
enc := value.Encode()
- if len(enc) < 32 {
+ if len(enc) >= 32 {
sha := Sha3Bin(enc)
cache.nodes[string(sha)] = NewNode(sha, value, true)