aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | | |
| * | | Fix some misconstructed testsPieter Wuille2016-04-053-12/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They claimed to be testing P2SH scripts with non-push scriptSigs, but 1) they were not enabling P2SH 2) they have push-only scriptSigs Fix this, and add a few more related cases.
| * | | Fix JSON pretty printing in script_testsPieter Wuille2016-04-051-4/+16
| |/ /
* | | Merge #7796: [amount] Add support for negative fee ratesWladimir J. van der Laan2016-04-141-0/+29
|\ \ \ | |/ / |/| | | | | | | | | | | facf5a4 [amount] tests: Fix off-by-one mistake (MarcoFalke) fa2da2c [amount] Add support for negative fee rates (MarcoFalke) 11114a6 [amount] test negative fee rates and full constructor (MarcoFalke)
| * | [amount] tests: Fix off-by-one mistakeMarcoFalke2016-04-091-1/+1
| | |
| * | [amount] test negative fee rates and full constructorMarcoFalke2016-04-081-0/+29
| |/
* / RPC: fix generatetoaddress failing to parse address and add unit testmruddy2016-04-031-0/+24
|/
* Merge #7691: [Wallet] refactor wallet/init interactionWladimir J. van der Laan2016-04-021-1/+0
|\ | | | | | | 25340b7 [Wallet] refactor wallet/init interaction (Jonas Schnelli)
| * [Wallet] refactor wallet/init interactionJonas Schnelli2016-03-221-1/+0
| |
* | rpc: Register calls where they are definedWladimir J. van der Laan2016-03-312-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | Split out methods to every module, apart from 'help' and 'stop' which are implemented in rpcserver.cpp itself. - This makes it easier to add or remove RPC commands - no longer everything that includes rpcserver.h has to be rebuilt when there's a change there. - Cleans up `rpc/server.h` by getting rid of the huge cluttered list of function definitions. - Removes most of the bitcoin-specific code from rpcserver.cpp and .h. Continues #7307 for the non-wallet.
* | Merge #7723: build: python 3 compatibilityWladimir J. van der Laan2016-03-292-2/+2
|\ \ | | | | | | | | | 18f05c7 build: python 3 compatibility (Wladimir J. van der Laan)
| * | build: python 3 compatibilityWladimir J. van der Laan2016-03-292-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ubuntu 16.04 "xenial xerus" does not come with Python 2.x by default. It is possible to install a python-2.7 package, but this has its own problem: no `python` or `python2` symlink (see #7717). This fixes the following scripts to work with python 3: - `make check` (bctest,py, bitcoin-util-test.py) - `make translate` (extract_strings_qt.py) - `make symbols-check` (symbol-check.py) - `make security-check` (security-check.py) Explicitly call the python commands using $(PYTHON) instead of relying on the interpreter line at the top of the scripts.
* | | Add importprunedfunds rpc callinstagibbs2016-03-232-12/+19
| | |
* | | Implement "feefilter" P2P message.Alex Morcos2016-03-211-1/+1
| | | | | | | | | | | | The "feefilter" p2p message is used to inform other nodes of your mempool min fee which is the feerate that any new transaction must meet to be accepted to your mempool. This will allow them to filter invs to you according to this feerate.
* | | Merge #7692: Remove p2p alert systemWladimir J. van der Laan2016-03-212-179/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cfd519e Add release note documentation (BtcDrak) 6601ce5 protocol.h/cpp: Removes NetMsgType::ALERT (Thomas Kerin) ad72104 Formatting (BtcDrak) 1b77471 Remove alert keys (BtcDrak) 01fdfef Remove `-alerts` option (BtcDrak) 9206634 Update alert notification and GUI (BtcDrak) bbb9d1d Remove p2p alert handling (BtcDrak)
| * | | FormattingBtcDrak2016-03-181-55/+55
| | | |
| * | | Remove p2p alert handlingBtcDrak2016-03-182-233/+56
| |/ /