Check for known block err and ignore

This commit is contained in:
obscuren
2014-12-02 11:37:33 +01:00
parent 9f7a8ea5e6
commit 99481a245a
5 changed files with 37 additions and 80 deletions

View File

@ -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)
}