aboutsummaryrefslogtreecommitdiff
path: root/src/test/data
Commit message (Collapse)AuthorAgeFilesLines
* Add bitcoin-tx testsJeff Garzik2014-08-196-0/+34
| | | | | Testing: delin, delout, locktime, and basic createrawtransaction-like functionality.
* bitcoin-tx: Accept input via stdin. Add input handling to tests.Jeff Garzik2014-08-191-0/+4
|
* Add "it works" test for bitcoin-txJeff Garzik2014-08-192-0/+6
|
* script tests: add tests for CHECKMULTISIG limitsOtto Allmendinger2014-07-181-0/+3
|
* script test: test case for 5-byte boolsOtto Allmendinger2014-07-181-0/+1
|
* script tests: value with trailing 0x00 is trueOtto Allmendinger2014-07-181-0/+1
|
* script tests: values that overflow to 0 are trueOtto Allmendinger2014-07-181-0/+1
|
* script tests: BOOLAND, BOOLOR decode to integerOtto Allmendinger2014-07-181-0/+3
| | | | unlike other boolean checks, arguments >5 bytes invalidate the script
* additional test for OP_SIZE in script_valid.jsonOtto Allmendinger2014-07-181-0/+1
|
* Merge pull request #4268Wladimir J. van der Laan2014-06-021-1/+1
|\ | | | | | | 223a6f7 Fix stray uppercase A in tx_valid.json. (Andreas Schildbach)
| * Fix stray uppercase A in tx_valid.json.Andreas Schildbach2014-06-011-1/+1
| |
* | Add CODESEPARATOR/FindAndDelete() testsPeter Todd2014-05-121-0/+46
|/
* Merge pull request #3843Wladimir J. van der Laan2014-05-092-45/+86
|\ | | | | | | | | | | | | | | | | 787ee0c Check redeemScript size does not exceed 520 byte limit (Peter Todd) 4d79098 Increase IsStandard() scriptSig length (Peter Todd) f80cffa Do not trigger a DoS ban if SCRIPT_VERIFY_NULLDUMMY fails (Peter Todd) 6380180 Add rejection of non-null CHECKMULTISIG dummy values (Peter Todd) 29c1749 Let tx (in)valid tests use any SCRIPT_VERIFY flag (Peter Todd) 68f7d1d Create (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constants (Peter Todd)
| * Add rejection of non-null CHECKMULTISIG dummy valuesPeter Todd2014-05-082-3/+44
| | | | | | | | | | | | This is a source of transaction mutability as the dummy value was previously not checked and could be modified to something other than the usual OP_0 value.
| * Let tx (in)valid tests use any SCRIPT_VERIFY flagPeter Todd2014-05-052-43/+43
| | | | | | | | Previously only P2SH could be set.
* | Merge pull request #3965Wladimir J. van der Laan2014-05-092-0/+16
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 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 testsCory Fields2014-04-222-0/+16
| |/
* | Merge pull request #3860 from petertodd/test-checkmulti-n-m-zeroGavin Andresen2014-05-092-0/+102
|\ \ | |/ |/| Test CHECKMULTISIG with m == 0 and/or n == 0
| * Test CHECKMULTISIG with m == 0 and n == 0Peter Todd2014-03-122-0/+80
| |
| * Fix script test handling of empty scriptsPeter Todd2014-03-122-0/+22
| | | | | | | | Previously an empty script would evaluate to OP_0
* | Add sighash tests from data fileManuel Araoz2014-03-311-0/+503
| |
* | Add licenses for tests and test dataWladimir J. van der Laan2014-03-181-0/+14
|/ | | | | | | | - Add license headers to source files (years based on commit dates) in `src/test` as well as `qa` - Add `README.md` to `src/test/data` specifying MIT license Fixes #3848
* Add script test to prove that OP_0 evaluates as the empty vector, rather ↵Andreas Schildbach2014-03-112-2/+6
| | | | than [0].
* Add more data-driven tests.Matt Corallo2014-01-302-2/+34
|
* Add tests for correct and incorrect order of signatures for a multisigTamas Blummer2013-12-112-2/+12
| | | (P2SH)
* Test alerts high at high PROTOCOL_VERSIONsGavin Andresen2013-11-111-0/+0
| | | | | | | | | I regenerated the alert test data; now alerts are tested against a protocol version way above the current protocol version. So we won't have to regenerate them every time we bump PROTOCOL_VERSION in the future.
* Add a few more basic script/tx test-cases.Matt Corallo2013-11-082-2/+14
|
* included-tests: generate binary data from test files for inclusion into test ↵Cory Fields2013-09-161-0/+0
| | | | | | | | | | | | | | | | | | | | | | binaries This change moves test data into the binaries rather than reading them from the disk at runtime. Advantages: - Tests become distributable - Cross-compile friendly. Build on one machine and execute in an arbitrary location on another. - Easier testing for backports. Users can verify that tests pass without having to track down corresponding test data. - More trustworthy test results and easier quality assurance as tests make fewer assumptions about their environment. - Tests could theoretically run at client/daemon startup and exit on failure. Disadvantages: - Required 'hexdump' build-dependency. This is a standard bsd tool that should be usable everywhere. It is likely already installed on all build-machines. - Tests can no longer be fudged after build by altering test-data.
* Document and test OP_RESERVED weirdnessPeter Todd2013-08-252-1/+6
| | | | | | 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 NUMEQUALGavin Andresen2013-08-061-0/+9
|
* Add unittests for multiple ELSEs in a rowPeter Todd2013-07-232-1/+30
| | | | | IF ELSE ELSE ENDIF is a valid construct; execution or non-execution inverts on each ELSE encountered.
* Removed AcceptToMemoryPool method from CTransaction. This method belongs to ↵Eric Lombrozo2013-06-052-2/+2
| | | | | | | | | | | | | | | | | the mempool instance. Removed AreInputsStandard from CTransaction, made it a regular function in main. Moved CTransaction::GetOutputFor to CCoinsViewCache. Moved GetLegacySigOpCount and GetP2SHSigOpCount out of CTransaction into regular functions in main. Moved GetValueIn and HaveInputs from CTransaction into CCoinsViewCache. Moved AllowFree, ClientCheckInputs, CheckInputs, UpdateCoins, and CheckTransaction out of CTransaction and into main. Moved IsStandard and IsFinal out of CTransaction and put them in main as IsStandardTx and IsFinalTx. Moved GetValueOut out of CTransaction into main. Moved CTxIn, CTxOut, and CTransaction into core. Added minimum fee parameter to CTxOut::IsDust() temporarily until CTransaction is moved to core.h so that CTxOut needn't know about CTransaction.
* Add new data-driven test-case.Matt Corallo2013-06-021-1/+7
|
* Add a few data-driven tests for SIGHASH_ANYONECANPAYMatt Corallo2013-05-212-2/+17
|
* -alertnotify=<cmd>Gavin Andresen2013-03-191-0/+0
| | | | | | Runs a shell command when an AppliesToMe() alert is received. %s in the <cmd> string is replaced with the alert.strStatusBar message.
* Some unit tests for CAlertGavin Andresen2013-03-191-0/+0
|
* Test canonical prunable txout format explicitlyPeter Todd2013-03-012-0/+5
|
* Add coverage for all invalid opsPeter Todd2013-03-012-1/+131
| | | | 0xba thru 0xff
* Merge pull request #1742 from sipa/canonicalJeff Garzik2012-10-202-0/+29
|\ | | | | Check for canonical public keys and signatures
| * Check for canonical public keys and signaturesPieter Wuille2012-09-212-0/+29
| | | | | | | | Only enabled inside tests for now.
* | data-driven base58 CBitcoinAddress/CBitcoinSecret testsWladimir J. van der Laan2012-10-013-0/+618
|/ | | | | Arbitrary numbers of test vectors can be generated using the script `gen_base58_test_vectors.py`.
* Add various tests for CTransaction::CheckTransaction()Matt Corallo2012-09-052-2/+59
|
* Add data-driven transaction tests.Matt Corallo2012-08-202-0/+78
|
* Add a few test cases to data-driven script tests.Matt Corallo2012-08-202-2/+195
|
* Remove newlines from JSON stringsGavin Andresen2012-05-252-80/+11
| | | | | | 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 limitsGavin Andresen2012-05-252-0/+100
|
* Lots more Script unit test cases.Gavin Andresen2012-05-242-7/+224
|
* More CScript unit tests.Gavin Andresen2012-05-242-1/+15
|
* Data-drive script evaluation unit tests.Gavin Andresen2012-04-212-0/+103