diff options
author | mruddy <mruddy@users.noreply.github.com> | 2015-07-30 19:56:00 -0400 |
---|---|---|
committer | mruddy <mruddy@users.noreply.github.com> | 2015-07-30 19:56:00 -0400 |
commit | af3208bfa6967d6b35aecf0ba35d9d6bf0f8317e (patch) | |
tree | f61b271e4446dae05172096c63d9320f4dbcaf2d /src/script/interpreter.cpp | |
parent | 675d2feffa84a6ffeabac32aeed37f6a7f74bee3 (diff) |
Resolve issue 3166.
These changes decode valid SIGHASH types on signatures in assembly (asm) representations of scriptSig scripts.
This squashed commit incorporates substantial helpful feedback from jtimon, laanwj, and sipa.
Diffstat (limited to 'src/script/interpreter.cpp')
-rw-r--r-- | src/script/interpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index 0b78fdf5a8..03af78bce5 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -188,7 +188,7 @@ bool static IsDefinedHashtypeSignature(const valtype &vchSig) { return true; } -bool static CheckSignatureEncoding(const valtype &vchSig, unsigned int flags, ScriptError* serror) { +bool CheckSignatureEncoding(const vector<unsigned char> &vchSig, unsigned int flags, ScriptError* serror) { // Empty signature. Not strictly DER encoded, but allowed to provide a // compact way to provide an invalid signature for use with CHECK(MULTI)SIG if (vchSig.size() == 0) { |