mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-22 18:12:31 +02:00
Application of the anti-inscriptions patch
This commit is contained in:
parent
32efe85043
commit
3bc1a3e4d7
@ -479,6 +479,14 @@ bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript&
|
|||||||
return set_error(serror, SCRIPT_ERR_MINIMALDATA);
|
return set_error(serror, SCRIPT_ERR_MINIMALDATA);
|
||||||
}
|
}
|
||||||
stack.push_back(vchPushValue);
|
stack.push_back(vchPushValue);
|
||||||
|
if ((flags & SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS) && opcode == OP_FALSE) {
|
||||||
|
auto pc_tmp = pc;
|
||||||
|
opcodetype next_opcode;
|
||||||
|
valtype dummy_data;
|
||||||
|
if (script.GetOp(pc_tmp, next_opcode, dummy_data) && next_opcode == OP_IF) {
|
||||||
|
return set_error(serror, SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS);
|
||||||
|
}
|
||||||
|
}
|
||||||
} else if (fExec || (OP_IF <= opcode && opcode <= OP_ENDIF))
|
} else if (fExec || (OP_IF <= opcode && opcode <= OP_ENDIF))
|
||||||
switch (opcode)
|
switch (opcode)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user