aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* [c++11] Use std::unique_ptr for block creation.Daniel Kraft2016-06-182-13/+7
| | | | | | CreateNewBlock returns a pointer for which the caller takes ownership. Use std::unique_ptr to make this explicit and simplify handling of these objects in getblocktemplate.
* Merge #7600: Mining: Select transactions using feerate-with-ancestorsPieter Wuille2016-06-161-0/+109
|\ | | | | | | | | 29fac19 Add unit tests for ancestor feerate mining (Suhas Daftuar) c82a4e9 Use ancestor-feerate based transaction selection for mining (Suhas Daftuar)
| * Add unit tests for ancestor feerate miningSuhas Daftuar2016-06-161-0/+109
| |
* | Introduce enum ServiceFlags for service flagsPieter Wuille2016-06-133-54/+54
| |
* | Don't require services in -addnodePieter Wuille2016-06-133-54/+54
|/
* Merge #7598: Refactor CreateNewBlock to be a method of the BlockAssembler classWladimir J. van der Laan2016-06-132-15/+15
|\ | | | | | | | | | | c2dd5a3 FIX: correctly measure size of priority block (Alex Morcos) a278764 FIX: Account for txs already added to block in addPriorityTxs (Alex Morcos) 4dc94d1 Refactor CreateNewBlock to be a method of the BlockAssembler class (Alex Morcos)
| * Refactor CreateNewBlock to be a method of the BlockAssembler classAlex Morcos2016-05-182-15/+15
| |
* | Merge #8166: src/test: Do not shadow local variablesWladimir J. van der Laan2016-06-094-8/+8
|\ \ | | | | | | | | | c2715d3 Do not shadow local variables (Pavel Janík)
| * | Do not shadow local variablesPavel Janík2016-06-074-8/+8
| | |
* | | Merge #8168: util: Add ParseUInt32 and ParseUInt64Wladimir J. van der Laan2016-06-091-0/+63
|\ \ \ | | | | | | | | | | | | e012f3c util: Add ParseUInt32 and ParseUInt64 (Wladimir J. van der Laan)
| * | | util: Add ParseUInt32 and ParseUInt64Wladimir J. van der Laan2016-06-081-0/+63
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Add error and range-checking parsers for unsigned 32 and 64 bit numbers. The 32-bit variant is required for parsing sequence numbers from the command line in `bitcoin-tx` (see #8164 for discussion). I've thrown in the 64-bit variant as a bonus, as I'm sure it will be needed at some point. Also adds tests, and updates `developer-notes.md`.
* | | Merge #8173: Use SipHash for node eviction (cont'd)Pieter Wuille2016-06-081-4/+61
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | eebc232 test: Add more test vectors for siphash (Wladimir J. van der Laan) 8884830 Use C++11 thread-safe static initializers (Pieter Wuille) c31b24f Use 64-bit SipHash of netgroups in eviction (Pieter Wuille) 9bf156b Support SipHash with arbitrary byte writes (Pieter Wuille) 053930f Avoid recalculating vchKeyedNetGroup in eviction logic. (Patrick Strateman)
| * | | test: Add more test vectors for siphashWladimir J. van der Laan2016-06-081-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | Add full test vectors from spec, test per byte and per 8 bytes. Builds on #8086.
| * | | Support SipHash with arbitrary byte writesPieter Wuille2016-06-071-4/+13
| | | |
* | | | Merge #8126: std::shared_ptr based CTransaction storage in mempoolWladimir J. van der Laan2016-06-081-9/+9
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 288d85d Get rid of CTxMempool::lookup() entirely (Pieter Wuille) c2a4724 Optimization: use usec in expiration and reuse nNow (Pieter Wuille) e9b4780 Optimization: don't check the mempool at all if no mempool req ever (Pieter Wuille) dbfb426 Optimize the relay map to use shared_ptr's (Pieter Wuille) 8d39d7a Switch CTransaction storage in mempool to std::shared_ptr (Pieter Wuille) 1b9e6d3 Add support for unique_ptr and shared_ptr to memusage (Pieter Wuille)
| * | | Get rid of CTxMempool::lookup() entirelyPieter Wuille2016-06-071-9/+9
| |/ /
* | | Merge #7957: [RPC][Bitcoin-TX] Add support for sequence numberWladimir J. van der Laan2016-06-073-0/+15
|\ \ \ | |/ / |/| | | | | | | | | | | ae357d5 [Bitcoin-Tx] Add tests for sequence number support (Jonas Schnelli) e59336f [bitcoin-tx] allow to set nSequence number over the in= command (Jonas Schnelli) a946bb6 [RPC] createrawtransaction: add option to set the sequence number per input (Jonas Schnelli)
| * | [Bitcoin-Tx] Add tests for sequence number supportJonas Schnelli2016-06-073-0/+15
| | |
* | | Merge #7992: Extend #7956 with one more test.Pieter Wuille2016-06-021-1/+121
|\ \ \ | | | | | | | | | | | | | | | | | | | | 269a440 Add test for dbwrapper iterators with same-prefix keys. (Matt Corallo) 6030625 test: Add more thorough test for dbwrapper iterators (Wladimir J. van der Laan) 84c13e7 chain: Add assertion in case of missing records in index db (Wladimir J. van der Laan)
| * | | Add test for dbwrapper iterators with same-prefix keys.Matt Corallo2016-05-171-0/+86
| | | |
| * | | test: Add more thorough test for dbwrapper iteratorsWladimir J. van der Laan2016-04-271-1/+35
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I made a silly mistake in a database wrapper where keys were sorted by char instead of uint8_t. As x86 char is signed the sorting for the block index database was messed up, resulting in a segfault due to missing records. Add a test to catch: - Wrong sorting - Seeking errors - Iteration result not complete
* | | Merge #7689: Replace OpenSSL AES with ctaes-based versionPieter Wuille2016-06-011-0/+191
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 723779c build: Enumerate ctaes rather than globbing (Cory Fields) 34ed64a crypter: add tests for crypter (Cory Fields) 0a36b9a crypter: shuffle Makefile so that crypto can be used by the wallet (Cory Fields) 976f9ec crypter: add a BytesToKey clone to replace the use of openssl (Cory Fields) 9049cde crypter: hook up the new aes cbc classes (Cory Fields) fb96831 crypter: constify encrypt/decrypt (Cory Fields) 1c391a5 crypter: fix the stored initialization vector size (Cory Fields) daa3841 crypto: add aes cbc tests (Cory Fields) 27a212d crypto: add AES 128/256 CBC classes (Cory Fields) 6bec172 Add ctaes-based constant time AES implementation (Pieter Wuille) a545127 Squashed 'src/crypto/ctaes/' content from commit cd3c3ac (Pieter Wuille)
| * | | crypto: add aes cbc testsCory Fields2016-05-131-0/+135
| | | |
| * | | Add ctaes-based constant time AES implementationPieter Wuille2016-05-131-0/+56
| | | |
* | | | Merge #8090: Adding P2SH(p2pkh) script test caseWladimir J. van der Laan2016-05-312-1/+11
|\ \ \ \ | | | | | | | | | | | | | | | b682960 Adding P2SH(p2pkh) script test case (Chris Stewart)
| * | | | Adding P2SH(p2pkh) script test caseChris Stewart2016-05-302-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixing formatting Adding test case into automatically generated test case set Clean up commits removing extra whitespace from eol Removing extra whitespace on macro line
* | | | | Merge #8108: Trivial: Remove unused local variable shadowing upper localMarcoFalke2016-05-271-1/+0
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | 13c4558 Remove unused local variable shadowing upper local (Pavel Janík)
| * | | | Remove unused local variable shadowing upper localPavel Janík2016-05-271-1/+0
| |/ / /
* | | | Fix typo adddrman to addrman as requested in #8070Ethan Heilman2016-05-181-1/+1
| | | |
* | | | Remove non-determinism which is breaking net_tests #8069EthanHeilman2016-05-181-0/+9
| |_|/ |/| |
* | | Merge #8020: Use SipHash-2-4 for various non-cryptographic hashesWladimir J. van der Laan2016-05-181-0/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | a68ec21 Use SipHash-2-4 for address relay selection (Pieter Wuille) 8cc9cfe Switch CTxMempool::mapTx to use a hash index for txids (Pieter Wuille) 382c871 Use SipHash-2-4 for CCoinsCache index (Pieter Wuille) 0b1295b Add SipHash-2-4 primitives to hash (Pieter Wuille)
| * | | Add SipHash-2-4 primitives to hashPieter Wuille2016-05-171-0/+20
| | | |
* | | | Merge #7696: Fix de-serialization bug where AddrMan is left corruptedPieter Wuille2016-05-171-0/+136
|\ \ \ \ | |/ / / |/| | | | | | | 1475ecf Fix de-serialization bug where AddrMan is corrupted after exception * CAddrDB modified so that when de-serialization code throws an exception Addrman is reset to a clean state * CAddrDB modified to make unit tests possible * Regression test created to ensure bug is fixed * StartNode modifed to clear adrman if CAddrDB::Read returns an error code. (EthanHeilman)
| * | | Fix de-serialization bug where AddrMan is corrupted after exceptionEthanHeilman2016-05-041-0/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * CAddrDB modified so that when de-serialization code throws an exception Addrman is reset to a clean state * CAddrDB modified to make unit tests possible * Regression test created to ensure bug is fixed * StartNode modifed to clear adrman if CAddrDB::Read returns an error code.
* | | | Merge #7994: Add op csv tests to script_tests.jsonPieter Wuille2016-05-171-1/+10
|\ \ \ \ | | | | | | | | | | | | | | | 10e83d7 Adding basic tests for OP_CSV inside of script_tests.json (Chris Stewart)
| * | | | Adding basic tests for OP_CSV inside of script_tests.jsonChris Stewart2016-05-111-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changing NOP3 op name to OP_CHECKSEQUENCEVERIFY, renaming instances of OP_NOP3 in script_tests.json to CHECKSEQUENCEVERIFY Cleaning up NOP3 comment Re-adding test cases that were accidentally deleted, removing dupicated test case, fixing formatting Removing re-labeling of OP_NOP3 to OP_CSV Fixing whitespace issues
* | | | | Remove unneeded feerate param from RelayTransaction/AcceptToMemoryPool.Gregory Maxwell2016-05-161-1/+1
| |_|/ / |/| | |
* | | | Merge #8016: Fix multithread CScheduler and reenable testWladimir J. van der Laan2016-05-101-2/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 166e4b0 Notify other serviceQueue thread we are finished to prevent deadlocks. (Pavel Janík) db18ab2 Reenable multithread scheduler test. (Pavel Janík)
| * | | | Reenable multithread scheduler test.Pavel Janík2016-05-061-2/+0
| | | | |
* | | | | Merge #7976: Remove obsolete reference to CValidationState from UpdateCoins.Wladimir J. van der Laan2016-05-091-2/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | c8b9248 Remove obsolete reference to CValidationState from UpdateCoins. (21E14)
| * | | | | Remove obsolete reference to CValidationState from UpdateCoins.21E142016-04-301-2/+1
| | |/ / / | |/| | |
* | | | | Merge #7934: Improve rolling bloom filter performance and benchmarkWladimir J. van der Laan2016-05-091-1/+4
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | 1953c40 More efficient bitsliced rolling Bloom filter (Pieter Wuille) aa62b68 Benchmark rolling bloom filter (Pieter Wuille)
| * | | | More efficient bitsliced rolling Bloom filterPieter Wuille2016-04-281-1/+4
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | This patch changes the implementation from one that stores 16 2-bit integers in one uint32_t's, to one that stores the first bit of 64 2-bit integers in one uint64_t and the second bit in another. This allows for 450x faster refreshing and 2.2x faster average speed.
* | | | Merge #7907: Optimize and Cleanup CScript::FindAndDeleteWladimir J. van der Laan2016-05-051-0/+117
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | d1d7775 Improve worst-case behavior of CScript::FindAndDelete (Patrick Strateman) e2a30bc Unit test for CScript::FindAndDelete (Gavin Andresen) c0f660c Replace c-style cast with c++ style static_cast. (Patrick Strateman) ec9ad5f Replace memcmp with std::equal in CScript::FindAndDelete (Patrick Strateman)
| * | | Unit test for CScript::FindAndDeleteGavin Andresen2016-04-191-0/+117
| | | |
* | | | Merge #7807: Fixed miner test values, gave constants for less error-prone ↵MarcoFalke2016-04-291-24/+29
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | values. f8536a6 Corrected values (instagibbs) 617deeb Gave miner test values constants for less error-prone values. (instagibbs)
| * | | Corrected valuesinstagibbs2016-04-071-2/+2
| | | |
| * | | Gave miner test values constants for less error-prone values.instagibbs2016-04-071-24/+29
| | | |
* | | | Merge #7933: Fix OOM when deserializing UTXO entries with invalid lengthWladimir J. van der Laan2016-04-261-0/+71
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1e44169 Add tests for CCoins deserialization (Pieter Wuille) 5d0434d Fix OOM bug: UTXO entries with invalid script length (Pieter Wuille) 4bf631e CDataStream::ignore Throw exception instead of assert on negative nSize. (Patrick Strateman) 4f87af6 Treat overly long scriptPubKeys as unspendable (Pieter Wuille) f8e6fb1 Introduce constant for maximum CScript length (Pieter Wuille)
| * | | | Add tests for CCoins deserializationPieter Wuille2016-04-251-0/+71
| | | | |