From 22996be2722e82960f56712fc3393a178d1ad205 Mon Sep 17 00:00:00 2001 From: "amalraj.manigmail.com" Date: Wed, 25 Jul 2018 14:34:13 +0800 Subject: [PATCH] crypto: restore func ValidateSignatureValues from previous quorum version as there are custom changes specific to quorum --- crypto/crypto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/crypto.go b/crypto/crypto.go index 619440e81..c8f0573eb 100644 --- a/crypto/crypto.go +++ b/crypto/crypto.go @@ -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 {