aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin.h
Commit message (Collapse)AuthorAgeFilesLines
* Replace test data with Dogecoin valuesRoss Nicoll2018-09-191-3/+3
| | | | | | | | | | | | | | | | | | | Replace test data with Dogecoin equivalents in the folowing tests: * base58 * bip32 * keys * miner * pow Replace RPC and deterministic signatures in unit tests with Dogecoin values. While conventionally I'd use an alternative implementation for these, as RFC 6979 compliant signature generation isn't terribly common, and there's no reason to suspect we've modified this code, I'm going to assert that it's good enough to test that the code doesn't provide different values. Disabled Bitcoin PoW tests, but left code in place to simplify later merges. These are replaced by the Dogecoin PoW tests.
* Remove member variable hadNoDependencies from CTxMemPoolEntryAlex Morcos2017-01-041-3/+1
| | | | Fee estimation can just check its own mapMemPoolTxs to determine the same information. Note that now fee estimation for block processing must happen before those transactions are removed, but this shoudl be a speedup.
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Make CBlock::vtx a vector of shared_ptr<CTransaction>Pieter Wuille2016-11-191-2/+2
|
* net: Create CConnman to encapsulate p2p connectionsCory Fields2016-09-081-0/+2
|
* BIP141: Other consensus critical limits, and BIP145Pieter Wuille2016-06-221-3/+3
| | | | Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
* Add TestMemPoolEntryHelper::FromTx version for CTransactionMatt Corallo2016-06-191-0/+1
|
* test: Create test fixture for walletWladimir J. van der Laan2016-04-181-2/+1
| | | | | Removes all the `#ifdef ENABLE_WALLET` from `test_bitcoin` by making the wallet tests use their own fixture.
* Add LockPointsAlex Morcos2016-03-161-1/+3
| | | | Obtain LockPoints to store in CTxMemPoolEntry and during a reorg, evaluate whether they are still valid and if not, recalculate them.
* Add missing copyright headersMarcoFalke2016-01-051-0/+4
|
* Store the total sig op count of a tx.Alex Morcos2015-12-011-3/+5
| | | | Store sum of legacy and P2SH sig op counts. This is calculated in AcceptToMemory pool and storing it saves redoing the expensive calculation in block template creation.
* Track coinbase spends in CTxMemPoolEntrySuhas Daftuar2015-11-301-1/+3
| | | | This allows us to optimize CTxMemPool::removeForReorg.
* Implement helper class for CTxMemPoolEntry constructorAlex Morcos2015-11-161-0/+25
| | | | This is only for unit tests.
* Switch to libsecp256k1-based validation for ECDSAPieter Wuille2015-11-151-0/+3
|
* Chainparams: Replace CBaseChainParams::Network enum with string constants ↵Jorge Timón2015-10-201-2/+2
| | | | (suggested by Wladimir)
* Unit test doublespends in new blocksGavin Andresen2015-07-271-2/+26
| | | | | | | As suggested by Greg Maxwell-- unit test to make sure a block with a double-spend in it doesn't pass validation if half of the double-spend is already in the memory pool (so full-blown transaction validation is skipped) when the block is received.
* tests: add a BasicTestingSetup and apply to all testsWladimir J. van der Laan2015-03-121-1/+13
| | | | | | | | Make sure that chainparams and logging is properly initialized. Doing this for every test may be overkill, but this initialization is so simple that that does not matter. This should fix the travis issues.
* Reinitialize state in between individual unit tests.Pieter Wuille2015-03-031-0/+18
This changes the TestingSetup fixture to be per-unit-test rather than global. Most tests don't need it, so it's only invoked in a few.