aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
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
parent39cb34850a573ea9b2ea73eb624139684502bc79 (diff)
downloaddexon-0ed19d9f2024744ba93d0e34db6939766b3cfed5.tar.gz
dexon-0ed19d9f2024744ba93d0e34db6939766b3cfed5.tar.zst
dexon-0ed19d9f2024744ba93d0e34db6939766b3cfed5.zip
Logging, variable rearrangement
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/script.go1
-rw-r--r--ethutil/trie.go2
2 files changed, 1 insertions, 2 deletions
diff --git a/ethutil/script.go b/ethutil/script.go
index 235498df2..af4ca6a38 100644
--- a/ethutil/script.go
+++ b/ethutil/script.go
@@ -22,7 +22,6 @@ func Compile(script string) (ret []byte, err error) {
} else {
compiler := mutan.NewCompiler(backend.NewEthereumBackend())
byteCode, errors := compiler.Compile(strings.NewReader(script))
- //byteCode, errors := mutan.Compile(strings.NewReader(script), false)
if len(errors) > 0 {
var errs string
for _, er := range errors {
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)