aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |/ /
* | | Merge #7705: [amount] Add tests and make GetFee() monotonicWladimir J. van der Laan2016-03-211-0/+42
|\ \ \ | |/ / |/| | | | | | | | | | | fad13b1 [amount] Preempt issues with negative fee rates (MarcoFalke) faf756a [amount] Make GetFee() monotonic (MarcoFalke) fab6880 [qa] Add amount tests (MarcoFalke)
| * | [qa] Add amount testsMarcoFalke2016-03-171-0/+42
| | |
* | | Merge #7575: Minimal BIP9 implementationWladimir J. van der Laan2016-03-182-3/+346
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8c74ced RPC test for BIP9 warning logic (Suhas Daftuar) 7870deb Test versionbits deployments (Suhas Daftuar) 532cbb2 Add testing of ComputeBlockVersion (Suhas Daftuar) d23f6c6 Softfork status report in RPC (Pieter Wuille) 732e774 Versionbits tests (Pieter Wuille) 6851107 BIP9 Implementation (Pieter Wuille)
| * | | Test versionbits deploymentsSuhas Daftuar2016-03-151-0/+22
| | | |
| * | | Add testing of ComputeBlockVersionSuhas Daftuar2016-03-151-0/+109
| | | |
| * | | Versionbits testsPieter Wuille2016-03-151-0/+185
| | | |
| * | | BIP9 ImplementationPieter Wuille2016-03-151-3/+30
| | |/ | |/| | | | | | | | | | Inspired by former implementations by Eric Lombrozo and Rusty Russell, and based on code by Jorge Timon.
* | | Merge #7594: Mempool: Add tracking of ancestor packagesWladimir J. van der Laan2016-03-171-10/+114
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | ce019bf Check all ancestor state in CTxMemPool::check() (Suhas Daftuar) e2eeb5d Add ancestor feerate index to mempool (Suhas Daftuar) 72abd2c Add ancestor tracking to mempool (Suhas Daftuar) 76a7632 Remove work limit in UpdateForDescendants() (Suhas Daftuar) 5de2baa Rename CTxMemPool::remove -> removeRecursive (Suhas Daftuar) 7659438 CTxMemPool::removeForBlock now uses RemoveStaged (Suhas Daftuar)
| * | Add ancestor feerate index to mempoolSuhas Daftuar2016-03-141-0/+104
| | |
| * | Rename CTxMemPool::remove -> removeRecursiveSuhas Daftuar2016-03-141-10/+10
| |/ | | | | | | | | remove is no longer called non-recursively, so simplify the logic and eliminate an unnecessary parameter
* | Merge #7187: Keep reorgs fast for SequenceLocks checksWladimir J. van der Laan2016-03-162-2/+4
|\ \ | | | | | | | | | 982670c Add LockPoints (Alex Morcos)
| * | Add LockPointsAlex Morcos2016-03-162-2/+4
| | | | | | | | | | | | Obtain LockPoints to store in CTxMemPoolEntry and during a reorg, evaluate whether they are still valid and if not, recalculate them.
* | | Merge #7684: [qa] Extend testsWladimir J. van der Laan2016-03-161-0/+5
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | fad8cfb [qa] mininode: Add and use CONSTs (MarcoFalke) fa8cd46 [qa] Move create_tx() to util.py (MarcoFalke) fad7dc8 [qa] wallet: speed up tests (MarcoFalke) fa3a81a [tests] Extend util_ParseMoney test case (MarcoFalke)
| * | [tests] Extend util_ParseMoney test caseMarcoFalke2016-03-141-0/+5
| | |
* | | Merge #7517: test: script_error checking in script_invalid testsWladimir J. van der Laan2016-03-142-553/+685
|\ \ \ | | | | | | | | | | | | | | | | | | | | 0ecb340 test: Script_error checking in script_invalid tests (Wladimir J. van der Laan) 2317ad7 test: Re-introduce JSON pretty printing in test builder (Wladimir J. van der Laan) b0ff857 test: Move non-generated script_invalid test to the correct place (Wladimir J. van der Laan)
| * | | test: Script_error checking in script_invalid testsWladimir J. van der Laan2016-02-112-545/+677
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check the returned script_error. Add expected script_error for generated as well as custom tests. The specific error is not part of consensus, however it could avoid unclear reporting issues such as #6862 in the future. Fixes #7513.
| * | | test: Re-introduce JSON pretty printing in test builderWladimir J. van der Laan2016-02-111-3/+3
| | | |
| * | | test: Move non-generated script_invalid test to the correct placeWladimir J. van der Laan2016-02-111-6/+6
| | | | | | | | | | | | | | | | | | | | This test was introduced in 9fadf1c874f938f87395495776dbae896551873d, but accidentally added in the autogenerated area.