aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | | | |
* | | | | Fixing comment in script_test.json test caseChris Stewart2016-04-251-1/+1
|/ / / /
* | / / dbwrapper: Pass parent CDBWrapper into CDBBatch and CDBIteratorWladimir J. van der Laan2016-04-231-4/+4
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Pass parent wrapper directly instead of obfuscation key. This makes it possible for other databases which re-use this code to use other properties from the database. Add a namespace dbwrapper_private for private functions to be used only in dbwrapper.h/cpp and dbwrapper_tests.
* | | Merge #7787: [Moveonly] Create ui_interface.cppWladimir J. van der Laan2016-04-191-2/+0
|\ \ \ | | | | | | | | | | | | | | | | fa10ce6 Move ui_interface.cpp to libbitcoin_server_a_SOURCES (MarcoFalke) fabbf80 [ui] Move InitError, InitWarning, AmountErrMsg (MarcoFalke)
| * | | [ui] Move InitError, InitWarning, AmountErrMsgMarcoFalke2016-04-021-2/+0
| | | |
* | | | wallet_ismine.h → script/ismine.hWladimir J. van der Laan2016-04-182-19/+2
| | | | | | | | | | | | | | | | | | | | | | | | Removes conditional dependency of `src/test` on wallet. Makes multisig and P2SH tests complete without wallet built-in.
* | | | test: Create test fixture for walletWladimir J. van der Laan2016-04-182-25/+1
| | | | | | | | | | | | | | | | | | | | Removes all the `#ifdef ENABLE_WALLET` from `test_bitcoin` by making the wallet tests use their own fixture.
* | | | test: move accounting_tests and rpc_wallet_tests to wallet/testWladimir J. van der Laan2016-04-182-370/+0
| | | | | | | | | | | | | | | | Move the two other wallet tests to where they belong.
* | | | test prevector::swapKaz Wesley2016-04-161-2/+13
| | | | | | | | | | | | | | | | | | | | - add a swap operation to prevector tests (fails due to broken prevector::swap) - fix 2 prevector test operation conditions that were impossible
* | | | Merge #7756: Add cursor to iterate over utxo set, use this in `gettxoutsetinfo`Wladimir J. van der Laan2016-04-151-2/+0
|\ \ \ \ | | | | | | | | | | | | | | | 509cb00 txdb: Add Cursor() method to CCoinsView to iterate over UTXO set (Wladimir J. van der Laan)
| * | | | txdb: Add Cursor() method to CCoinsView to iterate over UTXO setWladimir J. van der Laan2016-04-151-2/+0
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a method Cursor() to CCoinsView that returns a cursor which can be used to iterate over the whole UTXO set. - rpc: Change gettxoutsetinfo to use new Cursor method - txdb: Remove GetStats method - Now that GetStats is implemented in terms of Cursor, remove it.
* | | | Merge #6215: add bip32 pub key serializationWladimir J. van der Laan2016-04-151-0/+16
|\ \ \ \ | | | | | | | | | | | | | | | 90604f1 add bip32 pubkey serialization (Jonas Schnelli)
| * | | | add bip32 pubkey serializationJonas Schnelli2016-04-141-0/+16
| | | | | | | | | | | | | | | | | | | | CExtPubKey should be serializable like CPubKey
* | | | | [test] bctest.py: Revert faa41eeMarcoFalke2016-04-141-2/+1
|/ / / /
* | | | Merge #7853: [qa] py2: Unfiddle strings into bytes explicitlyWladimir J. van der Laan2016-04-141-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | faa41ee [qa] py2: Unfiddle strings into bytes explicitly (MarcoFalke)
| * | | | [qa] py2: Unfiddle strings into bytes explicitlyMarcoFalke2016-04-101-1/+2
| |/ / /
* | | | Merge #7849: tests: add varints_bitpatterns testWladimir J. van der Laan2016-04-141-0/+21
|\ \ \ \ | | | | | | | | | | | | | | | 4521f00 tests: add varints_bitpatterns test (Wladimir J. van der Laan)
| * | | | tests: add varints_bitpatterns testWladimir J. van der Laan2016-04-091-0/+21
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current tests for varint only check that serialization-deserialization is a roundtrip. That is a useful test, but it is also good to check for some exact bit patterns, to prevent a code change that changes the serialization format from going undetected. As the varint functions are templated, also check with different types.
* | | | Merge #7818: Refactor script testsWladimir J. van der Laan2016-04-144-2120/+2125
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dde46d3 Merge script_valid and script_invalid tests (Pieter Wuille) 009b503 Get rid of expect in script_tests as it's implied by scripterror (Pieter Wuille) 76da761 Make script_error a mandatory 4th field for script_tests (Pieter Wuille) 269281b Fix some misconstructed tests (Pieter Wuille) d03e466 Fix formatting of NOPs for generated script tests (Pieter Wuille) c7c6641 Fix JSON pretty printing in script_tests (Pieter Wuille)
| * | | | Merge script_valid and script_invalid testsPieter Wuille2016-04-053-1201/+1142
| | | | |
| * | | | Get rid of expect in script_tests as it's implied by scripterrorPieter Wuille2016-04-051-8/+9
| | | | |
| * | | | Make script_error a mandatory 4th field for script_testsPieter Wuille2016-04-053-1167/+1200
| | | | |