diff options
| author | Johnson Lau <[email protected]> | 2018-04-27 03:56:29 +0800 |
|---|---|---|
| committer | Johnson Lau <[email protected]> | 2018-05-05 04:26:12 +0800 |
| commit | 9dabfe49c066301ef75bcfcb089fd308366127c4 (patch) | |
| tree | 9640b1303dc21c3dc68463833d9f34145a118b2e /src/test/script_tests.cpp | |
| parent | Merge #13165: doc: Mention good first issue list in CONTRIBUTING.md (diff) | |
| download | discoin-9dabfe49c066301ef75bcfcb089fd308366127c4.tar.xz discoin-9dabfe49c066301ef75bcfcb089fd308366127c4.zip | |
Add constant scriptCode policy in non-segwit scripts
This disables OP_CODESEPARATOR in non-segwit scripts (even in an unexecuted branch), and makes a positive FindAndDelete result invalid. This ensures that the scriptCode serialized in SignatureHash() is always the same as the script passing to the EvalScript.
Diffstat (limited to 'src/test/script_tests.cpp')
| -rw-r--r-- | src/test/script_tests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp index 068f1e66f..39cca90e8 100644 --- a/src/test/script_tests.cpp +++ b/src/test/script_tests.cpp @@ -97,6 +97,8 @@ static ScriptErrorDesc script_errors[]={ {SCRIPT_ERR_WITNESS_MALLEATED_P2SH, "WITNESS_MALLEATED_P2SH"}, {SCRIPT_ERR_WITNESS_UNEXPECTED, "WITNESS_UNEXPECTED"}, {SCRIPT_ERR_WITNESS_PUBKEYTYPE, "WITNESS_PUBKEYTYPE"}, + {SCRIPT_ERR_OP_CODESEPARATOR, "OP_CODESEPARATOR"}, + {SCRIPT_ERR_SIG_FINDANDDELETE, "SIG_FINDANDDELETE"}, }; const char *FormatScriptError(ScriptError_t err) |