aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-27 06:08:19 +0800
committerobscuren <geffobscura@gmail.com>2014-06-27 06:08:19 +0800
commit8119d77a21d3973fe6379c5d57f393dda8fce392 (patch)
treeb0233ba1752ce44b323ef794eaf9fd1a5d631913 /ethutil
parent8935a93cf8990b8cfc120ff0ae385f3dde6cd165 (diff)
downloadgo-tangerine-8119d77a21d3973fe6379c5d57f393dda8fce392.tar
go-tangerine-8119d77a21d3973fe6379c5d57f393dda8fce392.tar.gz
go-tangerine-8119d77a21d3973fe6379c5d57f393dda8fce392.tar.bz2
go-tangerine-8119d77a21d3973fe6379c5d57f393dda8fce392.tar.lz
go-tangerine-8119d77a21d3973fe6379c5d57f393dda8fce392.tar.xz
go-tangerine-8119d77a21d3973fe6379c5d57f393dda8fce392.tar.zst
go-tangerine-8119d77a21d3973fe6379c5d57f393dda8fce392.zip
:-(
Diffstat (limited to 'ethutil')
-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)