diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-02-10 20:31:43 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-02-10 20:32:13 +0100 |
| commit | 2f3f4af4cc2b92b8758858d0a1c13635065eb379 (patch) | |
| tree | 2e13d33d6a614064130d4ad2398cc9add4d4641d /src/script/interpreter.cpp | |
| parent | Merge #7502: Update the wallet best block marker when pruning (diff) | |
| parent | Correctly report high-S violations (diff) | |
| download | discoin-2f3f4af4cc2b92b8758858d0a1c13635065eb379.tar.xz discoin-2f3f4af4cc2b92b8758858d0a1c13635065eb379.zip | |
Merge #7500: Correctly report high-S violations
9d95187 Correctly report high-S violations (Pieter Wuille)
Diffstat (limited to 'src/script/interpreter.cpp')
| -rw-r--r-- | src/script/interpreter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index a92822326..265131ae0 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -165,7 +165,10 @@ bool static IsLowDERSignature(const valtype &vchSig, ScriptError* serror) { return set_error(serror, SCRIPT_ERR_SIG_DER); } std::vector<unsigned char> vchSigCopy(vchSig.begin(), vchSig.begin() + vchSig.size() - 1); - return CPubKey::CheckLowS(vchSigCopy); + if (!CPubKey::CheckLowS(vchSigCopy)) { + return set_error(serror, SCRIPT_ERR_SIG_HIGH_S); + } + return true; } bool static IsDefinedHashtypeSignature(const valtype &vchSig) { |