aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge #8311: Rename CTxinWitness -> CTxInWitnessWladimir J. van der Laan2016-07-141-7/+7
|\ | | | | | | 36ae37a Rename CTxinWitness -> CTxInWitness (Bob McElrath)
| * Rename CTxinWitness -> CTxInWitnessBob McElrath2016-07-061-7/+7
| |
* | Merge #7540: Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFYWladimir J. van der Laan2016-07-083-54/+54
|\ \ | |/ |/| | | | | 18c975c Rename NOP3 to CHECSEQUENCEVERIFY in rpc tests (BtcDrak) 14d0130 Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFY (BtcDrak)
| * Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFYBtcDrak2016-06-283-54/+54
| |
* | Merge #8275: Remove bad chain alert partition checkWladimir J. van der Laan2016-07-061-79/+0
|\ \ | |/ |/| | | ab8be98 Remove bad chain alert partition check (BtcDrak)
| * Remove bad chain alert partition checkBtcDrak2016-06-141-79/+0
| | | | | | | | | | | | | | | | | | As per meeting 2016-03-31 https://bitcoincore.org/en/meetings/2016/03/31/#bad-chain-alerts The partition checker was producing huge number of false-positives and was disabled in 0.12.1 on the understanding it would either be fixed in 0.13 or removed entirely from master if not.
* | [qa] Add GetTransactionSigOpCost unit testsJonas Nick2016-06-221-0/+177
| |
* | [qa] script_tests: witness tests can specify tx amountSuhas Daftuar2016-06-222-51/+140
| | | | | | | | Add tests that witness signatures cover value
* | [qa] p2p segwit testsSuhas Daftuar2016-06-222-3/+128
| | | | | | | | | | | | | | | | | | | | | | | | mininode now supports witness transactions/blocks, blocktools has a helper for adding witness commitments to blocks, and script has a function to calculate hashes for signature under sigversion 1, used by segwit. Py3 conversion by Marco Falke Test to make sure upgraded nodes don't ask for non-wit blocks by Gregory Sanders.
* | [qa] Autogeneration support for witness in script_testsPieter Wuille2016-06-222-10/+227
| |
* | [qa] Add segwit support to script_testsPieter Wuille2016-06-222-19/+42
| | | | | | | | Contains fix by Johnson Lau.
* | [qa] Add transaction tests for segwitNicolasDorier2016-06-223-10/+263
| | | | | | | | Including BIP143 P2WSH examples by jl2012.
* | [qa] Witness version 0 signing unit testsPieter Wuille2016-06-221-0/+276
| |
* | BIP143: Signing logicPieter Wuille2016-06-224-58/+59
| |
* | [libconsensus] Script verification API with amountsThomas Kerin2016-06-221-1/+6
| | | | | | | | | | | | | | | | | | | | script_tests: always test bitcoinconsensus_verify_script_with_amount if VERIFY_WITNESS isn't set Rename internal method + make it static trim bitcoinconsensus_ prefix Add SERIALIZE_TRANSACTION_WITNESS flag
* | BIP141: Other consensus critical limits, and BIP145Pieter Wuille2016-06-225-11/+16
| | | | | | | | Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
* | BIP143: Verification logicPieter Wuille2016-06-224-32/+33
| | | | | | | | Includes simplifications by Eric Lombrozo.
* | Refactor script validation to observe amountsPieter Wuille2016-06-224-25/+29
| | | | | | | | This is a preparation for BIP143 support.
* | BIP141: Witness programPieter Wuille2016-06-224-27/+31
| |
* | BIP144: Serialization, hashes, relay (sender side)Pieter Wuille2016-06-223-6/+2
| | | | | | | | | | | | Contains refactorings by Eric Lombrozo. Contains fixup by Nicolas Dorier. Contains cleanup of CInv::GetCommand by Alex Morcos
* | Merge #8068: Compact BlocksWladimir J. van der Laan2016-06-223-1/+321
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 48efec8 Fix some minor compact block issues that came up in review (Matt Corallo) ccd06b9 Elaborate bucket size math (Pieter Wuille) 0d4cb48 Use vTxHashes to optimize InitData significantly (Matt Corallo) 8119026 Provide a flat list of txid/terators to txn in CTxMemPool (Matt Corallo) 678ee97 Add BIP 152 to implemented BIPs list (Matt Corallo) 56ba516 Add reconstruction debug logging (Matt Corallo) 2f34a2e Get our "best three" peers to announce blocks using cmpctblocks (Matt Corallo) 927f8ee Add ability to fetch CNode by NodeId (Matt Corallo) d25cd3e Add receiver-side protocol implementation for CMPCTBLOCK stuff (Matt Corallo) 9c837d5 Add sender-side protocol implementation for CMPCTBLOCK stuff (Matt Corallo) 00c4078 Add protocol messages for short-ids blocks (Matt Corallo) e3b2222 Add some blockencodings tests (Matt Corallo) f4f8f14 Add TestMemPoolEntryHelper::FromTx version for CTransaction (Matt Corallo) 85ad31e Add partial-block block encodings API (Matt Corallo) 5249dac Add COMPACTSIZE wrapper similar to VARINT for serialization (Matt Corallo) cbda71c Move context-required checks from CheckBlockHeader to Contextual... (Matt Corallo) 7c29ec9 If AcceptBlockHeader returns true, pindex will be set. (Matt Corallo) 96806c3 Stop trimming when mapTx is empty (Pieter Wuille)
| * | Add some blockencodings testsMatt Corallo2016-06-191-0/+315
| | |
| * | Add TestMemPoolEntryHelper::FromTx version for CTransactionMatt Corallo2016-06-192-1/+6
| | |
* | | Merge #8222: Enable mempool consistency checks in unit testsWladimir J. van der Laan2016-06-221-0/+1
|\ \ \ | | | | | | | | | | | | 3775ff9 Enable mempool consistency checks in unit tests (Pieter Wuille)
| * | | Enable mempool consistency checks in unit testsPieter Wuille2016-06-181-0/+1
| |/ /
* | | Merge #8179: Evict orphans which are included or precluded by accepted blocks.Wladimir J. van der Laan2016-06-201-1/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | 54326a6 Increase maximum orphan size to 100,000 bytes. (Gregory Maxwell) 8c99d1b Treat orphans as implicit inv for parents, discard when parents rejected. (Gregory Maxwell) 11cc143 Adds an expiration time for orphan tx. (Gregory Maxwell) db0ffe8 This eliminates the primary leak that causes the orphan map to always grow to its maximum size. (Gregory Maxwell) 1b0bcc5 Track orphan by prev COutPoint rather than prev hash (Pieter Wuille)
| * | Increase maximum orphan size to 100,000 bytes.Gregory Maxwell2016-06-151-1/+1
| | | | | | | | | | | | | | | Although this increases node memory usage in the worst case by perhaps 30MB, the current behavior causes severe issues with dependent tx relay.
* | | 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
| | | |