crypto: restore func ValidateSignatureValues from previous quorum version as there are custom changes specific to quorum

This commit is contained in:
amalraj.manigmail.com 2018-07-25 14:34:13 +08:00
parent 648465f192
commit 22996be272
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ func ValidateSignatureValues(v byte, r, s *big.Int, homestead bool) bool {
return false
}
// Frontier: allow s to be in full N range
return r.Cmp(secp256k1N) < 0 && s.Cmp(secp256k1N) < 0 && (v == 0 || v == 1)
return r.Cmp(secp256k1N) < 0 && s.Cmp(secp256k1N) < 0 && (v == 0 || v == 1 || v == 10 || v == 11)
}
func PubkeyToAddress(p ecdsa.PublicKey) common.Address {