aboutsummaryrefslogtreecommitdiff
path: root/src/test/miner_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add CMutableTransaction and make CTransaction immutable.Pieter Wuille2014-06-211-5/+7
| | | | | In addition, introduce a cached hash inside CTransaction, to prevent recalculating it over and over again.
* Switch miner.cpp to use sha2 instead of OpenSSL.Pieter Wuille2014-06-211-28/+0
|
* Add licenses for tests and test dataWladimir J. van der Laan2014-03-181-1/+3
| | | | | | | | - 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
* Fix off-by-one errors in use of IsFinalTx()Peter Todd2014-01-261-1/+50
| | | | | | | | | | | | | | Previously CreateNewBlock() didn't take into account the fact that IsFinalTx() without any arguments tests if the transaction is considered final in the *current* block, when both those functions really needed to know if the transaction would be final in the *next* block. Additionally the UI had a similar misunderstanding. Also adds some basic tests to check that CreateNewBlock() is in fact mining nLockTime-using transactions correctly. Thanks to Wladimir J. van der Laan for rebase.
* Make bitcoin compile without wallet if "db_cxx.h" is not presentThomas Holenstein2013-12-191-1/+0
| | | | | Moved includes of "db.h" into #ifdef ENABLE_WALLET blocks or remove them.
* Re-enable miner tests in --disable-wallet modeWladimir J. van der Laan2013-12-091-13/+12
| | | | | | Use a fixed script instead of a CReserveKey from the wallet. This does not affect the functionality or result of the tests as they never check the state of the wallet in the first place.
* Make unit tests succeed with -DDEBUG_LOCKORDERGavin Andresen2013-12-021-0/+2
|
* Add verbose boolean to getrawmempoolGavin Andresen2013-11-301-10/+10
| | | | | Also changes mempool to store CTxMemPoolEntries to keep track of when they enter/exit the pool.
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-3/+5
| | | | | | | | | 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.
* Refactor/encapsulate chain globals into a CChain classPieter Wuille2013-10-111-6/+6
|
* Fix minor unit test memory leaksPieter Wuille2013-09-191-0/+4
|
* CreateNewBlock() now takes scriptPubKey argument,Jeff Garzik2013-08-241-11/+11
| | | | | | | rather than a key. CreateNewBlockWithKey() helper is added to restore existing functionality, making this an equivalent-transformation change.
* Move internal miner/block creation to separate miner.cpp module.Jeff Garzik2013-07-311-0/+1
| | | | Public functions referenced elsewhere are added to miner.h.
* CValidationState frameworkPieter Wuille2013-01-301-1/+3
|
* changed CreateNewBlock to return a CBlockTemplate object, which includes ↵Forrest Voight2012-12-191-22/+23
| | | | per-tx fee and sigop count data
* Set block.nVersion to fix miner unit testGavin Andresen2012-08-201-0/+1
|
* Tests for CreateNewBlockLuke Dashjr2012-07-121-0/+190
|
* Fix tests after recent refactorsPieter Wuille2012-04-171-1/+2
|
* Rework unit tests so test_bitcoin.cpp does not #include them allGavin Andresen2011-12-191-1/+1
|
* Fix miner_test unit test bugGavin Andresen2011-10-051-3/+3
|
* remove cryptopp dependency, add simple unittest for SHA256Transform()Nils Schneider2011-09-301-0/+35