aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-02 18:37:33 +0800
committerobscuren <geffobscura@gmail.com>2014-12-02 18:37:33 +0800
commit99481a245adc2c4814ab6b38d94d63114f7bbb15 (patch)
tree947c32130249267c9cc0a9d0fd3b0a2bf77dda12 /vm
parent9f7a8ea5e696f1329d0ea2d0a679c385887ee149 (diff)
downloaddexon-99481a245adc2c4814ab6b38d94d63114f7bbb15.tar
dexon-99481a245adc2c4814ab6b38d94d63114f7bbb15.tar.gz
dexon-99481a245adc2c4814ab6b38d94d63114f7bbb15.tar.bz2
dexon-99481a245adc2c4814ab6b38d94d63114f7bbb15.tar.lz
dexon-99481a245adc2c4814ab6b38d94d63114f7bbb15.tar.xz
dexon-99481a245adc2c4814ab6b38d94d63114f7bbb15.tar.zst
dexon-99481a245adc2c4814ab6b38d94d63114f7bbb15.zip
Check for known block err and ignore
Diffstat (limited to 'vm')
-rw-r--r--vm/address.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/address.go b/vm/address.go
index 86ae705bc..06bd35f6b 100644
--- a/vm/address.go
+++ b/vm/address.go
@@ -42,5 +42,5 @@ func ecrecoverFunc(in []byte) []byte {
v := ethutil.BigD(in[32:64]).Bytes()[0] - 27
sig := append(in[64:], v)
- return crypto.Sha3(crypto.Ecrecover(append(hash, sig...))[1:])
+ return ethutil.LeftPadBytes(crypto.Sha3(crypto.Ecrecover(append(hash, sig...))[1:])[12:], 32)
}