aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/trie.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-26 17:26:42 +0800
committerobscuren <geffobscura@gmail.com>2014-06-26 17:26:42 +0800
commit0ed19d9f2024744ba93d0e34db6939766b3cfed5 (patch)
tree76f36ff8ed0a21bcb9976e6d9919401990061b60 /ethutil/trie.go
parent39cb34850a573ea9b2ea73eb624139684502bc79 (diff)
downloadgo-tangerine-0ed19d9f2024744ba93d0e34db6939766b3cfed5.tar.gz
go-tangerine-0ed19d9f2024744ba93d0e34db6939766b3cfed5.tar.zst
go-tangerine-0ed19d9f2024744ba93d0e34db6939766b3cfed5.zip
Logging, variable rearrangement
Diffstat (limited to 'ethutil/trie.go')
-rw-r--r--ethutil/trie.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethutil/trie.go b/ethutil/trie.go
index 18d0a5f0a..0c1a6d260 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)