Skip to content

Commit

Permalink
Merge bitcoin#7500: Correctly report high-S violations
Browse files Browse the repository at this point in the history
9d95187 Correctly report high-S violations (Pieter Wuille)
  • Loading branch information
laanwj committed Feb 10, 2016
2 parents b93f078 + 9d95187 commit 2f3f4af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/script/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2f3f4af

Please sign in to comment.