Add rejection of non-null CHECKMULTISIG dummy values

This is a source of transaction mutability as the dummy value was
previously not checked and could be modified to something other than the
usual OP_0 value.
This commit is contained in:
Peter Todd
2014-03-10 17:36:35 -04:00
parent 29c17498a5
commit 6380180821
5 changed files with 63 additions and 5 deletions

View File

@ -39,6 +39,7 @@ unsigned int ParseFlags(string strFlags){
mapFlagNames["P2SH"] = SCRIPT_VERIFY_P2SH;
mapFlagNames["STRICTENC"] = SCRIPT_VERIFY_STRICTENC;
mapFlagNames["EVEN_S"] = SCRIPT_VERIFY_EVEN_S;
mapFlagNames["NULLDUMMY"] = SCRIPT_VERIFY_NULLDUMMY;
}
BOOST_FOREACH(string word, words)