aboutsummaryrefslogtreecommitdiff
path: root/src/test/data/script_tests.json
Commit message (Collapse)AuthorAgeFilesLines
* scripted-diff: Remove trailing whitespacesJoão Barbosa2018-07-241-1/+1
| | | | | | | | -BEGIN VERIFY SCRIPT- sed --in-place'' --regexp-extended 's/[[:space:]]+$//g' $(git grep -I --files-with-matches --extended-regexp '[[:space:]]+$' -- src test ':!*.svg' ':!src/crypto/sha256_sse4*' ':!src/leveldb' ':!src/qt/locale' ':!src/secp256k1' ':!src/univalue') -END VERIFY SCRIPT-
* Merge #12167: Make segwit failure due to CLEANSTACK violation return a ↵Pieter Wuille2018-04-041-14/+14
|\ | | | | | | | | | | | | | | | | | | | | | | SCRIPT_ERR_CLEANSTACK error code 1e747e3c1e Make segwit failure due to CLEANSTACK violation return a SCRIPT_ERR_CLEANSTACK error code. (Mark Friedenbach) Pull request description: If a segwit script terminates with a stack size not equal to one, the current error code is EVAL_FALSE. This is semantically wrong, and prevents explicitly checking CLEANSTACK violations in the unit tests. This PR changes the error code (and affected unit tests) to use SCRIPT_ERROR_CLEANSTACK instead of SCRIPT_ERROR_EVAL_FALSE. Tree-SHA512: 8f7b1650f7a23a942cde1070e3e56420be456b4a7be42515b237e95557bf2bd5e7ba9aabd213c8092bea28c165dbe73f5a3486300089aeb01e698151b42484b1
| * Make segwit failure due to CLEANSTACK violation return a ↵Mark Friedenbach2018-01-121-14/+14
| | | | | | | | SCRIPT_ERR_CLEANSTACK error code.
* | Add some script tests related to BOOL ops and odd values like negative 0.Richard Kiss2018-02-131-0/+12
|/
* Merge #10699: Make all script validation flags backward compatibleWladimir J. van der Laan2017-12-121-2/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 01013f5 Simplify tx validation tests (Pieter Wuille) 2dd6f80 Add a test that all flags are softforks (Pieter Wuille) 2851b77 Make all script verification flags softforks (Pieter Wuille) Pull request description: This change makes `SCRIPT_VERIFY_UPGRADABLE_NOPS` not apply to `OP_CHECKLOCKTIMEVERIFY` and `OP_CHECKSEQUENCEVERIFY`. This is a no-op as `UPGRADABLE_NOPS` is only set for mempool transactions, and those always have `SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY` and `SCRIPT_VERIFY_CHECKSEQUENCEVERIFY` set as well. The advantage is that setting more flags now always results in a reduction in acceptable scripts (=softfork). This results in a nice and testable property for validation, for which a new test is added. This also means that the introduction of a new definition for a NOP or witness version will likely need the following procedure (example OP_NOP8 here) * Remove OP_NOP8 from being affected by `SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS`. * Add a `SCRIPT_VERIFY_DISCOURAGE_NOP8`, which only applies to `OP_NOP8`. * Add a `SCRIPT_VERIFY_NOP8` which implements the new consensus logic. * Before activation, add `SCRIPT_VERIFY_DISCOURAGE_NOP8` to the mempool flags. * After activation, add `SCRIPT_VERIFY_NOP8` to both the mempool and consensus flags. Tree-SHA512: d3b4538986ecf646aac9dba13a8d89318baf9e308e258547ca3b99e7c0509747f323edac6b1fea4e87e7d3c01b71193794b41679ae4f86f6e11ed6be3fd62c72
| * Make all script verification flags softforksPieter Wuille2017-06-301-2/+0
| |
* | Replace MAX_OPCODE for OP_NOP10.Mark Friedenbach2017-07-111-3/+3
|/ | | | That OP_NOP10 is the last executable opcode is a bit of a obscure trivia, and the MAX_OPCODE constant already exists. This merely standardizes use of MAX_OPCODE over OP_NOP10 where it makes sense and is more clear.
* Fixed multiple typosDimitris Tsapakidis2017-06-221-1/+1
| | | | | | | A few "a->an" and "an->a". "Shows, if the supplied default SOCKS5 proxy" -> "Shows if the supplied default SOCKS5 proxy". Change made on 3 occurrences. "without fully understanding the ramification of a command" -> "without fully understanding the ramifications of a command". Removed duplicate words such as "the the".
* tests: Correct testcase in script_tests.json for large number OP_EQUALWladimir J. van der Laan2017-05-151-1/+1
| | | | | Fix a test case that was passing correctly by accident, but not testing the right thing. Reported by helo on IRC.
* test segwit uncompressed key fixesJohnson Lau2016-10-171-1/+367
|
* Add policy: null signature for failed CHECK(MULTI)SIGJohnson Lau2016-09-271-1/+32
|
* Make non-minimal OP_IF/NOTIF argument non-standard for P2WSHJohnson Lau2016-09-231-1/+84
|
* Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFYBtcDrak2016-06-281-12/+12
|
* [qa] script_tests: witness tests can specify tx amountSuhas Daftuar2016-06-221-28/+95
| | | | Add tests that witness signatures cover value
* [qa] p2p segwit testsSuhas Daftuar2016-06-221-0/+84
| | | | | | | | | | | | mininode now supports witness transactions/blocks, blocktools has a helper for adding witness commitments to blocks, and script has a function to calculate hashes for signature under sigversion 1, used by segwit. Py3 conversion by Marco Falke Test to make sure upgraded nodes don't ask for non-wit blocks by Gregory Sanders.
* [qa] Autogeneration support for witness in script_testsPieter Wuille2016-06-221-0/+132
|
* [qa] Add segwit support to script_testsPieter Wuille2016-06-221-1/+7
| | | | Contains fix by Johnson Lau.
* Adding P2SH(p2pkh) script test caseChris Stewart2016-05-301-0/+7
| | | | | | | | | | | | Fixing formatting Adding test case into automatically generated test case set Clean up commits removing extra whitespace from eol Removing extra whitespace on macro line
* Adding basic tests for OP_CSV inside of script_tests.jsonChris Stewart2016-05-111-1/+10
| | | | | | | | | | | | Changing NOP3 op name to OP_CHECKSEQUENCEVERIFY, renaming instances of OP_NOP3 in script_tests.json to CHECKSEQUENCEVERIFY Cleaning up NOP3 comment Re-adding test cases that were accidentally deleted, removing dupicated test case, fixing formatting Removing re-labeling of OP_NOP3 to OP_CSV Fixing whitespace issues
* Fixing comment in script_test.json test caseChris Stewart2016-04-251-1/+1
|
* Merge script_valid and script_invalid testsPieter Wuille2016-04-051-0/+1824