corr DecodeHeirEitherOpRet in validators

added EVAL_TOKENS check in DecodeTokenOpRet
This commit is contained in:
dimxy
2019-01-14 17:26:42 +05:00
parent 08c0a5a8c6
commit 1fb94e5a34
3 changed files with 33 additions and 164 deletions

View File

@@ -125,6 +125,9 @@ uint8_t DecodeTokenOpRet(const CScript scriptPubKey, uint8_t &evalCode, uint256
bool isEof = true;
evalCode = script[0];
if (evalCode != EVAL_TOKENS)
return (uint8_t)0;
funcId = script[1];
//fprintf(stderr,"decode.[%c]\n",funcId);