| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Test the exact order of CHECKMULTISIG sig/pubkey evaluation | Peter Todd | 2014-11-20 | 1 | -0/+25 |
| | | | | | Possible with STRICTENC | ||||
| * | Make STRICTENC invalid pubkeys fail the script rather than the opcode. | Pieter Wuille | 2014-11-20 | 1 | -9/+9 |
| | | | | | | | | This turns STRICTENC turn into a softforking-safe change (even though it is not intended as a consensus rule), and as a result guarantee that using it for mempool validation only results in consensus-valid transactions in the mempool. | ||||
| * | Discourage NOPs reserved for soft-fork upgrades | Peter Todd | 2014-11-17 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | NOP1 to NOP10 are reserved for future soft-fork upgrades. In the event of an upgrade such NOPs have *VERIFY behavior, meaning that if their arguments are not correct the script fails. Discouraging these NOPs by rejecting transactions containing them from the mempool ensures that we'll never accept transactions, nor mine blocks, with scripts that are now invalid according to the majority of hashing power even if we're not yet upgraded. Previously this wasn't an issue as the IsStandard() rules didn't allow upgradable NOPs anyway, but 7f3b4e95 relaxed the IsStandard() rules for P2SH redemptions allowing any redeemScript to be spent. We *do* allow upgradable NOPs in scripts so long as they are not executed. This is harmless as there is no opportunity for the script to be invalid post-upgrade. | ||||
| * | Add valid invert of invalid every numeric opcode tests | Peter Todd | 2014-10-25 | 1 | -0/+49 |
| | | |||||
| * | Clearly separate PUSHDATA and numeric argument MINIMALDATA tests | Peter Todd | 2014-10-25 | 1 | -15/+70 |
| | | |||||
| * | Add SCRIPT_VERIFY_MINIMALDATA (BIP62 rules 3 and 4) | Pieter Wuille | 2014-10-25 | 1 | -2/+29 |
| | | | | | | Also use the new flag as a standard rule, and replace the IsCanonicalPush standardness check with it (as it is more complete). | ||||
| * | Add SCRIPT_VERIFY_SIGPUSHONLY (BIP62 rule 2) | Pieter Wuille | 2014-10-25 | 1 | -0/+12 |
| | | |||||
| * | Make SCRIPT_VERIFY_STRICTENC compatible with BIP62 | Pieter Wuille | 2014-10-08 | 1 | -10/+52 |
| | | | | | | | | | * Delete canonical_tests.cpp, and move the tests to script_tests.cpp. * Split off SCRIPT_VERIFY_DERSIG from SCRIPT_VERIFY_STRICTENC (the BIP62 part of it). * Change signature STRICTENC/DERSIG semantics to fail the script entirely rather than the CHECKSIG result (softfork safety, and BIP62 requirement). * Add many autogenerated tests for several odd cases. * Mention specific BIP62 rules in the script verification flags. | ||||
| * | Prettify JSON tests and minimize diffs | Pieter Wuille | 2014-10-07 | 1 | -13/+78 |
| | | |||||
| * | Add automatic script test generation, and actual checksig tests | Pieter Wuille | 2014-09-26 | 1 | -12/+13 |
| | | |||||
| * | Add actual signature tests | Pieter Wuille | 2014-09-22 | 1 | -1/+16 |
| | | |||||
| * | Use actually valid transactions for script tests | Pieter Wuille | 2014-09-22 | 1 | -0/+9 |
| | | |||||
| * | Make script_{valid,invalid}.json validation flags configurable | Pieter Wuille | 2014-09-08 | 1 | -464/+476 |
| | | |||||
| * | script test: test case for 5-byte bools | Otto Allmendinger | 2014-07-18 | 1 | -0/+1 |
| | | |||||
| * | script tests: value with trailing 0x00 is true | Otto Allmendinger | 2014-07-18 | 1 | -0/+1 |
| | | |||||
| * | script tests: values that overflow to 0 are true | Otto Allmendinger | 2014-07-18 | 1 | -0/+1 |
| | | |||||
| * | additional test for OP_SIZE in script_valid.json | Otto Allmendinger | 2014-07-18 | 1 | -0/+1 |
| | | |||||
| * | Merge pull request #3965 | Wladimir J. van der Laan | 2014-05-09 | 1 | -0/+13 |
| |\ | | | | | | | | | | | | | | | | | b1fdd54 script: Add test for CScriptNum (Cory Fields) 90320d6 script: add additional script tests (Cory Fields) 05e3ecf script: remove bignum dependency (Cory Fields) 4f497cd script: switch outside users to CScriptNum (Cory Fields) 27bff74 script: switch to CScriptNum usage for scripts (Cory Fields) 48d8eb1 script: add CScriptNum class (Cory Fields) | ||||
| | * | script: add additional script tests | Cory Fields | 2014-04-22 | 1 | -0/+13 |
| | | | |||||
| * | | Test CHECKMULTISIG with m == 0 and n == 0 | Peter Todd | 2014-03-12 | 1 | -0/+64 |
| | | | |||||
| * | | Fix script test handling of empty scripts | Peter Todd | 2014-03-12 | 1 | -0/+12 |
| |/ | | | | Previously an empty script would evaluate to OP_0 | ||||
| * | Add script test to prove that OP_0 evaluates as the empty vector, rather ↵ | Andreas Schildbach | 2014-03-11 | 1 | -1/+3 |
| | | | | | than [0]. | ||||
| * | Add a few more basic script/tx test-cases. | Matt Corallo | 2013-11-08 | 1 | -1/+9 |
| | | |||||
| * | Document and test OP_RESERVED weirdness | Peter Todd | 2013-08-25 | 1 | -1/+5 |
| | | | | | | | Seems it was forgotten about when IsPushOnly() and the unittests were written. A particular oddity is that OP_RESERVED doesn't count towards the >201 opcode limit unlike every other named opcode. | ||||
| * | More unit tests for NUMEQUAL | Gavin Andresen | 2013-08-06 | 1 | -0/+9 |
| | | |||||
| * | Add unittests for multiple ELSEs in a row | Peter Todd | 2013-07-23 | 1 | -0/+15 |
| | | | | | | IF ELSE ELSE ENDIF is a valid construct; execution or non-execution inverts on each ELSE encountered. | ||||
| * | Test canonical prunable txout format explicitly | Peter Todd | 2013-03-01 | 1 | -0/+2 |
| | | |||||
| * | Add coverage for all invalid ops | Peter Todd | 2013-03-01 | 1 | -0/+64 |
| | | | | | 0xba thru 0xff | ||||
| * | Add a few test cases to data-driven script tests. | Matt Corallo | 2012-08-20 | 1 | -1/+110 |
| | | |||||
| * | Remove newlines from JSON strings | Gavin Andresen | 2012-05-25 | 1 | -50/+6 |
| | | | | | | | Newlines in JSON strings are against the JSON spec, so remove them from the script*.json unit tests to make python's jsonrpc happy (json::spirit didn't care). | ||||
| * | Unit tests for transaction size limits | Gavin Andresen | 2012-05-25 | 1 | -0/+60 |
| | | |||||
| * | Lots more Script unit test cases. | Gavin Andresen | 2012-05-24 | 1 | -7/+107 |
| | | |||||
| * | More CScript unit tests. | Gavin Andresen | 2012-05-24 | 1 | -0/+10 |
| | | |||||
| * | Data-drive script evaluation unit tests. | Gavin Andresen | 2012-04-21 | 1 | -0/+78 |