Created
February 1, 2023 20:05
-
-
Save luke-jr/4c022839584020444915c84bdd825831 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- a/src/script/interpreter.cpp | |
| +++ b/src/script/interpreter.cpp | |
| @@ -504,6 +504,14 @@ bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript& | |
| return set_error(serror, SCRIPT_ERR_MINIMALDATA); | |
| } | |
| 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)) | |
| switch (opcode) | |
| { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please,I have never added any address and as such I have never received any payments for mining,can someone please help me with configuration,I don't know how to go about it