Merge branch 'develop'

This commit is contained in:
obscuren 2014-06-27 00:08:29 +02:00
commit e3ad2a3969

View File

@ -47,7 +47,7 @@ func (cache *Cache) Put(v interface{}) interface{} {
value := NewValue(v) value := NewValue(v)
enc := value.Encode() enc := value.Encode()
if len(enc) < 32 { if len(enc) >= 32 {
sha := Sha3Bin(enc) sha := Sha3Bin(enc)
cache.nodes[string(sha)] = NewNode(sha, value, true) cache.nodes[string(sha)] = NewNode(sha, value, true)