aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Rename CWalletInterface to CValidationInterfacePieter Wuille2014-10-201-1/+1
| | | | It's useful for much more than wallets.
* Merge pull request #4468Wladimir J. van der Laan2014-10-171-45/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | e11b2ce Fix large reorgs (Pieter Wuille) afc32c5 Fix rebuild-chainstate feature and improve its performance (Pieter Wuille) 16d5194 Skip reindexed blocks individually (Pieter Wuille) ad96e7c Make -reindex cope with out-of-order blocks (Wladimir J. van der Laan) e17bd58 Rename setBlockIndexValid to setBlockIndexCandidates (Pieter Wuille) 1af838b Add height to "Requesting block" debug (R E Broadley) 1bcee67 Better logging of stalling (R E Broadley) 4c93322 Improve getheaders (sending) logging (R E Broadley) f244c99 Remove CheckMinWork, as we always know all parent headers (Pieter Wuille) ad6e601 RPC additions after headers-first (Pieter Wuille) 341735e Headers-first synchronization (Pieter Wuille)
| * Remove CheckMinWork, as we always know all parent headersPieter Wuille2014-10-141-45/+0
| |
* | boost: drop boost dependency in version.cpp.Cory Fields2014-10-151-0/+12
|/ | | | Also add a test to verify.
* Typo in testLuke2014-10-131-1/+1
|
* Make SCRIPT_VERIFY_STRICTENC compatible with BIP62Pieter Wuille2014-10-085-135/+161
| | | | | | | | * 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.
* Merge pull request #4834Pieter Wuille2014-10-084-9/+186
|\ | | | | | | | | | | | | | | 7c70438 Get rid of the dummy CCoinsViewCache constructor arg (Pieter Wuille) ed27e53 Add coins_tests with a large randomized CCoinViewCache test. (Pieter Wuille) 058b08c Do not keep fully spent but unwritten CCoins entries cached. (Pieter Wuille) c9d1a81 Get rid of CCoinsView's SetCoins and SetBestBlock. (Pieter Wuille) f28aec0 Use ModifyCoins instead of mutable GetCoins. (Pieter Wuille)
| * Get rid of the dummy CCoinsViewCache constructor argPieter Wuille2014-09-244-6/+6
| |
| * Add coins_tests with a large randomized CCoinViewCache test.Pieter Wuille2014-09-231-0/+178
| |
| * Get rid of CCoinsView's SetCoins and SetBestBlock.Pieter Wuille2014-09-232-5/+4
| | | | | | | | | | | | All direct modifications are now done through ModifyCoins, and BatchWrite is used for pushing batches of queued modifications up, so we don't need the low-level SetCoins and SetBestBlock anymore in the top-level CCoinsView class.
* | Prettify JSON tests and minimize diffsPieter Wuille2014-10-073-40/+179
| |
* | Merge pull request #4890Wladimir J. van der Laan2014-10-064-32/+31
|\ \ | | | | | | | | | | | | | | | e790c37 Replace SCRIPT_VERIFY_NOCACHE by flag directly to checker (Pieter Wuille) 5c1e798 Make signature cache optional (Pieter Wuille) c7829ea Abstract out SignatureChecker (Pieter Wuille)
| * | Replace SCRIPT_VERIFY_NOCACHE by flag directly to checkerPieter Wuille2014-10-024-31/+30
| | |
| * | Abstract out SignatureCheckerPieter Wuille2014-10-021-1/+1
| | |
* | | DRY: Avoid repetitions in script_testjtimon2014-10-021-30/+7
|/ /
* | Merge pull request #4985Wladimir J. van der Laan2014-10-021-72/+75
|\ \ | | | | | | | | | | | | bc470c4 Changed mixed indentation to four spaces (Eric Shaw) 31d6390 Fixed setaccount accepting foreign address (Eric Shaw)
| * | Changed mixed indentation to four spacesEric Shaw2014-10-021-74/+73
| | | | | | | | | | | | Put `test/rpc_wallet_tests.cpp` through clang-format.
| * | Fixed setaccount accepting foreign addressEric Shaw2014-10-021-2/+6
| | | | | | | | | | | | | | | Fixed issue #4209 where using setaccount with a foreign address causes the address to be added to your receiving addresses.
* | | Switch testing framework from MAIN to new UNITTEST networkSergioDemianLerner2014-10-023-3/+4
| | | | | | | | | | | | UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
* | | Revert merge of pull #4845Wladimir J. van der Laan2014-10-024-279/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It breaks the new mingw tests! See - https://travis-ci.org/bitcoin/bitcoin/jobs/36845581 - https://travis-ci.org/bitcoin/bitcoin/jobs/36845582 This reverts commit 470590277782cce2fe73275c74523aef59a51eab, 5e2e7fcb99738d9254d4030d53e4f711b2fc5ee0, a25fd6be138ff2bff7e2ad6a1a789db523c0193f.
* | | Merge pull request #4845Wladimir J. van der Laan2014-10-024-3/+279
|\ \ \ | | | | | | | | | | | | | | | | | | | | 4705902 Avoid introducing a virtual into CChainParams (Wladimir J. van der Laan) 5e2e7fc Suggested corrections on comments, variable names. Also new test case testing the PoW skip in UNITTEST. (SergioDemianLerner) a25fd6b Switch testing framework from MAIN to new UNITTEST network (SergioDemianLerner)
| * | | Suggested corrections on comments, variable names.SergioDemianLerner2014-09-291-42/+85
| | | | | | | | | | | | | | | | Also new test case testing the PoW skip in UNITTEST.
| * | | Switch testing framework from MAIN to new UNITTEST networkSergioDemianLerner2014-09-294-3/+236
| | | | | | | | | | | | | | | | UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
* | | | Merge pull request #4234Wladimir J. van der Laan2014-10-014-7/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | c122f55 qt: Register CAmount metatype (Wladimir J. van der Laan) a372168 Use a typedef for monetary values (Mark Friedenbach)
| * | | | Use a typedef for monetary valuesMark Friedenbach2014-09-264-7/+7
| | | | |
* | | | | Merge pull request #5014Wladimir J. van der Laan2014-10-014-18/+31
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 41d67c7 tests: fix python test-runner for windows (Cory Fields)
| * | | | | tests: fix python test-runner for windowsCory Fields2014-09-304-18/+31
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows needed a few fixups to get the tests running: 1. bitcoin-tx needs a file extension in Windows. Take this opportunity to add an env file, which pulls variables out of our build config. This can be extended as needed, for now it's very simple. 2. After #1, split the args out of the exec key in the test data. 3. Correct the line-endings from windows stdout
* | | | | Merge pull request #5015 from theuni/win64testGavin Andresen2014-09-301-3/+3
|\ \ \ \ \ | | | | | | | | | | | | tests: fix false-positive under win64
| * | | | | tests: fix false-positive under win64Cory Fields2014-09-301-3/+3
| |/ / / / | | | | | | | | | | | | | | | BN_ULONG isn't necessarily an unsigned long, as is the case on win64.
* | | | | Fix vector out of bounds in script testsPieter Wuille2014-09-291-8/+8
| | | | |
* | | | | Merge pull request #4960Pieter Wuille2014-09-294-44/+372
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | 8138cbe Add automatic script test generation, and actual checksig tests (Pieter Wuille)
| * | | | Add automatic script test generation, and actual checksig testsPieter Wuille2014-09-264-44/+372
| | |/ / | |/| |
* | | | Merge pull request #4970Wladimir J. van der Laan2014-09-291-1/+2
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 93e24dd travis: use debug for one build (Cory Fields) be6d87a script: don't read past the end (Cory Fields) a94496f tests: don't split an empty string (Cory Fields) 00522cd depends: disable reduced exports for debug builds (Cory Fields) 1f7fff2 depends: add docs for debug (Cory Fields) dc66ff5 depends: make LDFLAGS act like the other flags (Cory Fields) b1efba8 depends: give miniupnpc cppflags (Cory Fields) 1d154db depends: teach qt to honor debug/release (Cory Fields) 3b63df5 depends: boost: build for debug or release as requested (Cory Fields) 7e99df7 depends: make sure openssl sees cppflags (Cory Fields) f397304 depends: add debug/release flags for linux/osx/win (Cory Fields) 2027ad3 depends: add the debug/release concept to depends (Cory Fields)
| * | | tests: don't split an empty stringCory Fields2014-09-251-1/+2
| |/ /
* / / autofile: don't copy CAutoFile by valueCory Fields2014-09-251-1/+1
|/ /
* | Merge pull request #4968Wladimir J. van der Laan2014-09-251-1/+1
|\ \ | | | | | | | | | 219372f script: Fix reference into empty vector run time exception (ENikS)
| * | script: Fix reference into empty vector run time exceptionENikS2014-09-251-1/+1
| |/ | | | | | | Edit by laanwj: `begin_ptr(sourcedata) + sourcedata.size()` -> `end_ptr(sourcedata)`
* / Fixing out of bounds asses errorENikS2014-09-231-1/+1
|/
* Add actual signature testsPieter Wuille2014-09-222-2/+33
|
* Use actually valid transactions for script testsPieter Wuille2014-09-223-5/+62
|
* test: Fix DoS tests after c74332cWladimir J. van der Laan2014-09-201-3/+7
| | | | Fix data structure mismatch ... The mind boggles that they were still passing at all.
* Merge pull request #4555Wladimir J. van der Laan2014-09-174-32/+32
|\ | | | | | | | | | | | | 6dcfda2 Don't pass nHashType to EvalScript nor CheckSig (jtimon) 2b23a87 Don't pass nHashType to VerifyScript (jtimon) ce3649fb Remove CScriptCheck::nHashType (was always 0) (jtimon) 358562b Remove unused function main:VerifySignature (jtimon)
| * Don't pass nHashType to EvalScript nor CheckSigjtimon2014-09-121-4/+4
| |
| * Don't pass nHashType to VerifyScriptjtimon2014-09-124-27/+27
| |
| * Remove CScriptCheck::nHashType (was always 0)jtimon2014-09-121-1/+1
| |
| * Remove unused function main:VerifySignaturejtimon2014-09-121-1/+1
| |
* | Move CTxDestination from script/script to script/standardPieter Wuille2014-09-166-39/+35
| |
* | bitcoin-util-test: Test bitcoin-tx with null scriptPubKeyLuke Dashjr2014-09-142-0/+4
|/
* Merge pull request #4876Pieter Wuille2014-09-124-794/+821
|\ | | | | | | 6022b5d Make script_{valid,invalid}.json validation flags configurable (Pieter Wuille)
| * Make script_{valid,invalid}.json validation flags configurablePieter Wuille2014-09-084-794/+821
| |