aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2014-09-25autofile: don't copy CAutoFile by valueCory Fields
2014-09-25Merge pull request #4968Wladimir J. van der Laan
219372f script: Fix reference into empty vector run time exception (ENikS)
2014-09-25script: Fix reference into empty vector run time exceptionENikS
Edit by laanwj: `begin_ptr(sourcedata) + sourcedata.size()` -> `end_ptr(sourcedata)`
2014-09-23Fixing out of bounds asses errorENikS
2014-09-22Add actual signature testsPieter Wuille
2014-09-22Use actually valid transactions for script testsPieter Wuille
2014-09-20test: Fix DoS tests after c74332cWladimir J. van der Laan
Fix data structure mismatch ... The mind boggles that they were still passing at all.
2014-09-17Merge pull request #4555Wladimir J. van der Laan
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)
2014-09-16Move CTxDestination from script/script to script/standardPieter Wuille
2014-09-14bitcoin-util-test: Test bitcoin-tx with null scriptPubKeyLuke Dashjr
2014-09-12Don't pass nHashType to EvalScript nor CheckSigjtimon
2014-09-12Don't pass nHashType to VerifyScriptjtimon
2014-09-12Remove CScriptCheck::nHashType (was always 0)jtimon
2014-09-12Remove unused function main:VerifySignaturejtimon
2014-09-12Merge pull request #4876Pieter Wuille
6022b5d Make script_{valid,invalid}.json validation flags configurable (Pieter Wuille)
2014-09-10Stricter handling of orphan transactionsGavin Andresen
Prevent denial-of-service attacks by banning peers that send us invalid orphan transactions and only storing orphan transactions given to us by a peer while the peer is connected.
2014-09-10Rename scriptutils.o to wallet_ismine.ojtimon
2014-09-10Move scriptutils.o to walletjtimon
2014-09-08Make script_{valid,invalid}.json validation flags configurablePieter Wuille
2014-09-08Separate script/signjtimon
2014-09-08Separate script/interpreterjtimon
2014-09-08Move CScript class and dependencies to script/scriptjtimon
2014-09-08Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes)jtimon
2014-08-28fix comments ExtractAddress() -> ExtractDestination()jtimon
2014-08-27Merge pull request #4377Pieter Wuille
654871d replace ComputeMinWork with CheckMinWork (jtimon) b343c1a Move CBlockIndex::GetBlockWork() to pow::GetProofIncrement(nBits) (jtimon) c2c02f3 Move UpdateTime to pow (jtimon)
2014-08-26Merge pull request #4748Pieter Wuille
ad49c25 Split up util.cpp/h (Wladimir J. van der Laan) f841aa2 Move `COIN` and `CENT` to core.h (Wladimir J. van der Laan) 6e5fd00 Move `*Version()` functions to version.h/cpp (Wladimir J. van der Laan) b4aa769 Move `S_I*` constants and `MSG_NOSIGNAL` to compat.h (Wladimir J. van der Laan) af8297c Move functions in wallet.h to implementation file (Wladimir J. van der Laan) 651480c move functions in main and net to implementation files (Wladimir J. van der Laan) 610a8c0 Move SetThreadPriority implementation to util.cpp instead of the header (Wladimir J. van der Laan) f780e65 Remove unused function `ByteReverse` from util.h (Wladimir J. van der Laan) 121d6ad Remove unused `alignup` function from util.h (Wladimir J. van der Laan) d1e26d4 Move CMedianFilter to timedata.cpp (Wladimir J. van der Laan)
2014-08-26Split up util.cpp/hWladimir J. van der Laan
Split up util.cpp/h into: - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach) - money utilities (parsesmoney, formatmoney) - time utilities (gettime*, sleep, format date): - and the rest (logging, argument parsing, config file parsing) The latter is basically the environment and OS handling, and is stripped of all utility functions, so we may want to rename it to something else than util.cpp/h for clarity (Matt suggested osinterface). Breaks dependency of sha256.cpp on all the things pulled in by util.
2014-08-26Move CMedianFilter to timedata.cppWladimir J. van der Laan
Now that we no longer use the median filter to keep track of the number of blocks of peers, that's the only place it is used.
2014-08-24Test IsPushOnly() with invalid pushPeter Todd
2014-08-24Merge pull request #4618Pieter Wuille
eb0b56b Simplify serialize.h's exception handling (Pieter Wuille)
2014-08-23replace ComputeMinWork with CheckMinWorkjtimon
2014-08-22Merge pull request #4733Jeff Garzik
2014-08-20Merge pull request #4744Jeff Garzik
2014-08-20rpc_tests: use BOOST_CHECK_EQUALJeff Garzik
Upon failure, BOOST_CHECK_EQUAL provides additional diagnostic information, displaying that data that failed to match.
2014-08-20UniValue tests: use more BOOST_CHECK()Jeff Garzik
2014-08-20UniValue: add unit testsJeff Garzik
2014-08-19Add bitcoin-tx testsJeff Garzik
Testing: delin, delout, locktime, and basic createrawtransaction-like functionality.
2014-08-19bitcoin-tx: Accept input via stdin. Add input handling to tests.Jeff Garzik
2014-08-19Add "it works" test for bitcoin-txJeff Garzik
2014-08-09Simplify serialize.h's exception handlingPieter Wuille
Remove the 'state' and 'exceptmask' from serialize.h's stream implementations, as well as related methods. As exceptmask always included 'failbit', and setstate was always called with bits = failbit, all it did was immediately raise an exception. Get rid of those variables, and replace the setstate with direct exception throwing (which also removes some dead code). As a result, good() is never reached after a failure (there are only 2 calls, one of which is in tests), and can just be replaced by !eof(). fail(), clear(n) and exceptions() are just never called. Delete them.
2014-08-01Declare SignatureHash() in script.hjtimon
2014-07-31Merge pull request #4560Wladimir J. van der Laan
d2d9dc0 script tests: add tests for CHECKMULTISIG limits (Otto Allmendinger) 89101c6 script test: test case for 5-byte bools (Otto Allmendinger) 4cac5db script tests: value with trailing 0x00 is true (Otto Allmendinger) 833ff16 script tests: values that overflow to 0 are true (Otto Allmendinger) 0072d98 script tests: BOOLAND, BOOLOR decode to integer (Otto Allmendinger) ed02282 additional test for OP_SIZE in script_valid.json (Otto Allmendinger)
2014-07-31Merge pull request #4568Wladimir J. van der Laan
9c34731 CBloomFilter::clear() method (Tom Harding)
2014-07-29Move ParseScript() helper, becoming accessible outside src/test/Jeff Garzik
2014-07-21CBloomFilter::clear() methodTom Harding
2014-07-21Revert "CBloomFilter::clear() method"Wladimir J. van der Laan
This reverts commit 8fbf03995df9a2003be603be1a930bc3373d56e0.
2014-07-18script tests: add tests for CHECKMULTISIG limitsOtto Allmendinger
2014-07-18script test: test case for 5-byte boolsOtto Allmendinger
2014-07-18script tests: value with trailing 0x00 is trueOtto Allmendinger
2014-07-18script tests: values that overflow to 0 are trueOtto Allmendinger