Add CScript::IsWithdrawLock() (which is standard)

This commit is contained in:
Matt Corallo 2016-01-18 20:35:04 -08:00 committed by Gregory Sanders
parent 6be3888987
commit cf5d16755d
4 changed files with 169 additions and 13 deletions

View file

@ -426,8 +426,9 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, un
break;
}
case OP_NOP1: case OP_NOP4: case OP_NOP5:
case OP_NOP1: case OP_NOP5:
case OP_NOP6: case OP_NOP7: case OP_NOP8: case OP_NOP9: case OP_NOP10:
case OP_WITHDRAWPROOFVERIFY:
{
if (flags & SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS)
return set_error(serror, SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS);