aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* move rand functions from util to new random.h/.cppPhilip Kaufmann2014-07-091-3/+1
|
* Move ui_interface to bitcoin_server.aWladimir J. van der Laan2014-07-071-1/+1
| | | | | There is no need for it in the utility libraries or tools. Put it in init.cpp, and in the tests separately (as they can't link init).
* Remove unnecessary dependencies for bitcoin-cliWladimir J. van der Laan2014-06-251-0/+1
| | | | | | | | | This commit removes all the unnecessary dependencies (key, core, netbase, sync, ...) from bitcoin-cli. To do this it shards the chain parameters into BaseParams, which contains just the RPC port and data directory (as used by utils and bitcoin-cli) and Params, with the rest.
* Fix test build after d138598Wladimir J. van der Laan2014-03-251-0/+5
| | | | | | | | Building the tests was giving some vague error message about a doubly-defined symbol. The solution is to define ShutdownRequested in test_bitcoin.cpp as well so that init.cpp does not get pulled in.
* Add licenses for tests and test dataWladimir J. van der Laan2014-03-181-0/+4
| | | | | | | | - 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
* Merge pull request #3416Wladimir J. van der Laan2013-12-201-1/+1
|\ | | | | | | 9e9056c Remove -logtodebugger (Wladimir J. van der Laan)
| * Remove -logtodebuggerWladimir J. van der Laan2013-12-151-1/+1
| | | | | | | | | | | | | | | | | | `-logtodebugger` is a strange, obscure, WIN32-only (mostly MSVC) thing. Let's clean up the options a bit get rid of it. test_bitcoin was using fLogToDebugger as a way to prevent logging to debug.log. For this, add a boolean (not exposed as option) fLogToDebugLog that defaults to true and is disabled in the tests.
* | Make bitcoin compile without wallet if "db_cxx.h" is not presentThomas Holenstein2013-12-191-1/+1
|/ | | | | Moved includes of "db.h" into #ifdef ENABLE_WALLET blocks or remove them.
* Add main-specific node statePieter Wuille2013-12-081-0/+2
|
* Delimit code with #ifdef ENABLE_WALLETWladimir J. van der Laan2013-12-041-0/+10
| | | | | Delimit all code that uses the wallet functions in implementation files that conditionally use the wallet.
* bitcoin-cli: remove unneeded dependencies (only code movement)Wladimir J. van der Laan2013-12-031-1/+0
| | | | | | | | | | | | | | Remove unnecessary dependencies for bitcoin-cli (leveldb, berkelydb, wallet, RPC server) Build system changes: - split libbitcoin.a into libbitcoin_common.a, libbitcoin_server.a and libbitcoin_cli.a Code changes (movement only): - split up HelpMessage into HelpMessage in init.cpp and HelpMessageCli in rpcclient.cpp - move uiInterface from init.cpp to util.cpp
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-4/+9
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Port Thread* methods to boost::thread_groupGavin Andresen2013-04-031-2/+4
|
* Make sure the genesis block is present after reindexPieter Wuille2013-02-011-1/+1
|
* Parallelize script verificationPieter Wuille2013-01-081-0/+4
| | | | | | | | | | | | | | | | | | | | | * During block verification (when parallelism is requested), script check actions are stored instead of being executed immediately. * After every processed transactions, its signature actions are pushed to a CScriptCheckQueue, which maintains a queue and some synchronization mechanism. * Two or more threads (if enabled) start processing elements from this queue, * When the block connection code is finished processing transactions, it joins the worker pool until the queue is empty. As cs_main is held the entire time, and all verification must be finished before the block continues processing, this does not reach the best possible performance. It is a less drastic change than some more advanced mechanisms (like doing verification out-of-band entirely, and rolling back blocks when a failure is detected). The -par=N flag controls the number of threads (1-16). 0 means auto, and is the default.
* Make test_bitcoin run in a temp datadirPieter Wuille2012-11-291-0/+7
|
* Fix tests after cache tweaksPieter Wuille2012-11-101-2/+2
|
* Add -reindex, to perform in-place reindexing of block chain filesPieter Wuille2012-11-091-1/+1
| | | | | | | Flushes the blktree/ and coins/ databases, and reindexes the block chain files, as if their contents was loaded via -loadblock. Based on earlier work by Jeff Garzik.
* Remove BDB block database supportPieter Wuille2012-10-201-5/+0
|
* Add LevelDB MemEnv supportPieter Wuille2012-10-201-1/+7
| | | | Support LevelDB memory-backed environments, and use them in unit tests.
* Use singleton block tree database instancePieter Wuille2012-10-201-0/+8
|
* Suppress output when running unit tests.Gavin Andresen2012-08-201-1/+1
| | | | | | | | This does two things: 1) Now does not output to debug.log if -printtodebugger flag is passed 2) Unit tests set -printtodebugger so only test results are output to stdout Note that -printtodebugger only actually prints to the debugger on Windows.
* Run BDB disk-less for test_bitcoinLuke Dashjr2012-07-111-1/+7
|
* Fix build of testcases after commit 0f10b21719e1b0d9683a142f0a7105e65f095694Wladimir J. van der Laan2012-06-141-0/+6
|
* Make testcases build, prevent windows symbol collisionWladimir J. van der Laan2012-05-201-0/+4
|
* Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16).Gavin Andresen2012-01-131-3/+9
|
* Global fixture to send output to console instead of debug.logGavin Andresen2011-12-191-0/+10
|
* Rework unit tests so test_bitcoin.cpp does not #include them allGavin Andresen2011-12-191-13/+2
|
* Moved checkpoints out of main, to prep for using them to help prevent DoS ↵Gavin Andresen2011-12-011-0/+1
| | | | attacks
* Merge branch 'no-cryptopp' of https://github.com/tcatm/bitcoinGavin Andresen2011-10-051-1/+2
|\
| * remove cryptopp dependency, add simple unittest for SHA256Transform()Nils Schneider2011-09-301-1/+2
| |
* | remove possibility of 63 bit overflow in ParseMoneyWladimir J. van der Laan2011-10-011-0/+2
|/ | | | - also, add unit tests for various functions in util.cpp/util.h
* Test case for base64 encode/decodePieter Wuille2011-09-271-0/+1
|
* Framework for banning mis-behaving peersGavin Andresen2011-09-211-1/+1
|
* Cleanup test suite output to be more useful.Matt Corallo2011-08-081-1/+1
|
* Add file for transaction tests.Matt Corallo2011-08-081-0/+1
|
* Add a file for script testsVegard Nossum2011-08-081-0/+1
|
* Fix testing setupVegard Nossum2011-08-081-0/+10
| | | | | | | There were some problems with the existing testing setup: - Makefile rules for test-file compilation used CFLAGS instead of CXXFLAGS in makefile.unix
* Boost unit-testing framework.Gavin Andresen2011-06-271-0/+6
make -f makefile.{unix,osx,mingw} test_bitcoin to compile dumb, do-almost-nothing placeholder unit tests.