MarcoFalke
fae1f4ebfe
[qa] rpc-tests: Fix link in comment and label error msg
2016-04-18 14:52:28 +02:00
Wladimir J. van der Laan
b1bf511af6
Merge #7833 : tests: Check Content-Type header returned from RPC server
...
5078ca4
tests: Check Content-Type header returned from RPC server (Wladimir J. van der Laan)
2016-04-18 12:45:04 +02:00
João Barbosa
af4fe7fd12
Add change options to fundrawtransaction
2016-04-15 15:36:05 +02:00
Wladimir J. van der Laan
6ef5e000a2
Merge #7853 : [qa] py2: Unfiddle strings into bytes explicitly
...
faa41ee
[qa] py2: Unfiddle strings into bytes explicitly (MarcoFalke)
2016-04-14 17:40:31 +02:00
Rusty Russell
d12760b16a
rpc-tests: handle KeyError nicely in test_framework.py
...
btcdrak wrote this for me.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-04-13 16:54:07 +09:30
Rusty Russell
85c807c9ea
getblockchaininfo: make bip9_softforks an object, not an array.
...
We can't change "softforks", but it seems far more logical to use tags
in an object rather than using an "id" field in an array.
For example, to get the csv status before, you need to iterate the
array to find the entry with 'id' field equal to "csv":
jq '.bip9_softforks | map(select(.id == "csv"))[] | .status'
Now:
jq '.bip9_softforks.csv.status'
There is no issue with fork names being incompatible with JSON tags,
since we're selecting them ourselves.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-04-13 16:53:52 +09:30
MarcoFalke
faa41ee204
[qa] py2: Unfiddle strings into bytes explicitly
2016-04-10 20:35:57 +02:00
MarcoFalke
faa4f22342
[qa] pull-tester: Exit early when no tests are run
2016-04-09 23:08:29 +02:00
MarcoFalke
fa05e22e91
[qa] pull-tester: Don't mute zmq ImportError
2016-04-09 21:21:56 +02:00
Suhas Daftuar
da5fdbb3a2
Test relay of version 2 transactions
2016-04-07 14:59:50 -04:00
Suhas Daftuar
5cb1d8a207
Tests: move get_bip9_status to util.py
2016-04-07 14:54:50 -04:00
Wladimir J. van der Laan
5078ca4543
tests: Check Content-Type header returned from RPC server
...
Check the Content-Type header that is returned from the RPC server. Only
if it is `application/json` the data is supposed to be parsed as JSON.
This gives better reporting if the HTTP server happens to return an error that is
not JSON-formatted, which is the case if it happens at a lower level
before JSON-RPC kicks in.
Before: `Unexpected exception caught during testing: No JSON object could be decoded`
After: `JSONRPC error: non-JSON HTTP response with '403 Forbidden' from server`
2016-04-07 15:40:17 +02:00
Wladimir J. van der Laan
3bc71e1572
Merge #7802 : [qa] httpbasics: Actually test second connection
...
fa24456
[qa] httpbasics: Actually test second connection (MarcoFalke)
2016-04-06 14:14:14 +02:00
Wladimir J. van der Laan
401c65c6b3
Merge #7803 : [qa] maxblocksinflight: Actually enable test
...
fac724c
[qa] maxblocksinflight: Actually enable test (MarcoFalke)
2016-04-06 14:13:38 +02:00
Wladimir J. van der Laan
70ac71b877
Merge #7801 : [qa] Remove misleading "errorString syntax"
...
ffff866
[qa] Remove misleading "errorString syntax" (MarcoFalke)
2016-04-06 14:12:44 +02:00
mruddy
92107d574d
RPC: add versionHex in getblock and getblockheader JSON results; expand data in getblockchaininfo bip9_softforks field.
2016-04-04 22:21:00 +00:00
MarcoFalke
ffff866da8
[qa] Remove misleading "errorString syntax"
2016-04-03 21:33:56 +02:00
MarcoFalke
fac724c78f
[qa] maxblocksinflight: Actually enable test
2016-04-03 20:49:32 +02:00
MarcoFalke
fa24456d0c
[qa] httpbasics: Actually test second connection
2016-04-03 20:43:56 +02:00
Wladimir J. van der Laan
ff5874bcf7
Merge #7778 : [qa] Bug fixes and refactor
...
4444806
[qa] mininode: Combine struct.pack format strings (MarcoFalke)
faaa3c9
[qa] mininode: Catch exceptions in got_data (MarcoFalke)
fa2cea1
[qa] rpc-tests: Properly use integers, floats (MarcoFalke)
fa524d9
[qa] Use python2/3 syntax (MarcoFalke)
2016-04-03 15:54:35 +02:00
MarcoFalke
444480649f
[qa] mininode: Combine struct.pack format strings
2016-04-02 11:48:07 +02:00
MarcoFalke
faaa3c9b65
[qa] mininode: Catch exceptions in got_data
2016-04-01 21:23:49 +02:00
MarcoFalke
fa2cea163b
[qa] rpc-tests: Properly use integers, floats
2016-04-01 21:23:30 +02:00
Wladimir J. van der Laan
e9723cb273
Merge #7489 : tests: Make proxy_test work on travis servers without IPv6
...
7539f1a
tests: Make proxy_test work on travis servers without IPv6 (Wladimir J. van der Laan)
2016-04-01 14:42:26 +02:00
MarcoFalke
fa524d9ddb
[qa] Use python2/3 syntax
2016-03-31 18:35:17 +02:00
BtcDrak
40234ba89f
Fix comments in tests
2016-03-30 19:38:02 +01:00
Wladimir J. van der Laan
e8a8f3d4b2
Merge #7648 : BIP9 versionbits softfork for BIP68, BIP112 and BIP113
...
71527a0
Test of BIP9 fork activation of mtp, csv, sequence_lock (NicolasDorier)
19d73d5
Add RPC test for BIP 68/112/113 soft fork. (Alex Morcos)
12c89c9
Policy: allow transaction version 2 relay policy. (BtcDrak)
02c2435
Soft fork logic for BIP68 (BtcDrak)
478fba6
Soft fork logic for BIP113 (BtcDrak)
65751a3
Add CHECKSEQUENCEVERIFY softfork through BIP9 (Pieter Wuille)
2016-03-30 18:59:39 +02:00
Wladimir J. van der Laan
d8e862a5a7
Merge #7744 : test_framework: detect failure of bitcoind startup
...
018b60c
test_framework: detect failure of bitcoind startup (Wladimir J. van der Laan)
2016-03-29 17:16:30 +02:00
MarcoFalke
faa9f01461
[qa] Don't run pruning.py twice
2016-03-29 16:49:45 +02:00
Wladimir J. van der Laan
b35a591793
Merge #7558 : [RPC] Add import/removeprunedfunds rpc call
...
f1bb13c
Added companion removeprunedfunds call. (instagibbs)
7eb7029
Add importprunedfunds rpc call (instagibbs)
2016-03-29 11:15:02 +02:00
MarcoFalke
fa3fafc960
[qa] wallet: Wait for reindex to catch up
2016-03-28 21:47:42 +02:00
Luke Dashjr
e7e48ba66c
test_framework: Py3.4 compat: Specify timeout parameter by name
...
Changed in version 3.4: The strict parameter was removed. HTTP 0.9-style
“Simple Responses” are not longer supported.
(https://docs.python.org/3/library/http.client.html )
Source: 7ebeebb4f6
2016-03-28 12:30:48 +02:00
Wladimir J. van der Laan
d7b80b54fb
test_framework: Avoid infinite loop in encoding Decimal
...
Avoid an infinite loop in encoding, by ensuring EncodeDecimal
returns a string. round(Decimal) used to convert it to
float, but it no longer does in python 3.x. Strings are
supported since #6380 , so just use that.
2016-03-28 12:20:13 +02:00
Wladimir J. van der Laan
018b60c5ea
test_framework: detect failure of bitcoind startup
...
Replace the `bitcoin-cli -rpcwait` after spawning bitcoind
with our own loop that detects when bitcoind exits prematurely.
And if one node fails to start, stop the others.
This prevents a hang in such a case (see #7463 ).
2016-03-26 08:10:07 +01:00
instagibbs
f1bb13c93d
Added companion removeprunedfunds call.
2016-03-23 10:40:38 -04:00
instagibbs
7eb702954e
Add importprunedfunds rpc call
2016-03-23 10:40:38 -04:00
Wladimir J. van der Laan
3bdc583b3f
Merge #7715 : Fix calculation of balances and available coins.
...
68d4282
Fix calculation of balances and available coins. (Alex Morcos)
2016-03-23 15:09:02 +01:00
Wladimir J. van der Laan
e2ebd259fb
Merge #7671 : [RPC] Add generatetoaddress rpc to mine to an address
...
d5c5c71
RPC tests for generatetoaddress (Andrew C)
fe00ca7
Create generatetoaddress rpc (Andrew C)
2016-03-23 13:24:53 +01:00
Alex Morcos
b536a6fc83
Add p2p test for feefilter
2016-03-21 10:46:25 -04:00
Alex Morcos
5fa66e4682
Create SingleNodeConnCB class for RPC tests
2016-03-21 10:46:25 -04:00
Andrew C
d5c5c713e6
RPC tests for generatetoaddress
...
Adds two RPC tests for the generatetoaddress RPC, one in the wallet, and one when the wallet is disabled.
The wallet RPC Test mines Bitcoin to another node's address and checks that that node has received the Bitcoin.
The RPC test without the wallet mines Bitcoin to an arbitrary address and checks that it works. It then mines to an arbitrary invalid address and checks that that fails.
2016-03-21 10:22:29 -04:00
NicolasDorier
71527a0f31
Test of BIP9 fork activation of mtp, csv, sequence_lock
2016-03-21 09:07:34 +00:00
MarcoFalke
fab3890156
[qa] rpc-test: Normalize assert()
2016-03-19 19:07:08 +01:00
Alex Morcos
68d4282774
Fix calculation of balances and available coins.
...
No longer consider coins which aren't in our mempool.
Add test for regression in abandonconflict.py
2016-03-18 09:56:30 -04:00
Wladimir J. van der Laan
29e1131c46
Merge #7702 : [qa] Add tests verifychain, lockunspent, getbalance, listsinceblock
...
fa4a522
[qa] Add tests verifychain, lockunspent, getbalance, listsinceblock (MarcoFalke)
2016-03-18 12:23:55 +01:00
Wladimir J. van der Laan
efde86b4aa
Merge #7709 : Tests: fix missing import in mempool_packages
...
e38781d
Tests: fix missing import in mempool_packages (Suhas Daftuar)
2016-03-18 11:09:03 +01:00
Alex Morcos
19d73d540c
Add RPC test for BIP 68/112/113 soft fork.
...
This RPC test will test both the activation mechanism of the first versionbits soft fork as well as testing many code branches of the consensus logic for BIP's 68, 112, and 113.
2016-03-18 08:09:06 +00:00
Wladimir J. van der Laan
73b7eb501e
Merge #7575 : Minimal BIP9 implementation
...
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)
2016-03-18 08:50:43 +01:00
Suhas Daftuar
e38781da40
Tests: fix missing import in mempool_packages
2016-03-17 20:23:29 -04:00
MarcoFalke
fa4a522541
[qa] Add tests verifychain, lockunspent, getbalance, listsinceblock
2016-03-17 11:21:34 +01:00
Suhas Daftuar
ec143391ef
Tests: make prioritise_transaction.py more robust
2016-03-16 12:52:04 -04:00
Wladimir J. van der Laan
3d0dfdbf9f
Merge #7684 : [qa] Extend tests
...
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)
2016-03-16 17:32:05 +01:00
Suhas Daftuar
8c74cedef5
RPC test for BIP9 warning logic
2016-03-16 15:09:39 +01:00
MarcoFalke
fad8cfb893
[qa] mininode: Add and use CONSTs
2016-03-14 16:45:18 +01:00
MarcoFalke
fa8cd46f39
[qa] Move create_tx() to util.py
2016-03-14 16:45:04 +01:00
MarcoFalke
fad7dc8a6c
[qa] wallet: speed up tests
2016-03-14 16:20:59 +01:00
Elliot Olds
2ab835ae6c
Check if zmq is installed in tests, update docs
...
If ZMQ is enabled, check whether it's installed before running ZMQ tests.
If it isn't, disable ZMQ and print a warning.
Also add dependency info to test docs, so users know ZMQ is required
before running tests, and so they know how to install it.
When following the build instructions before this change then trying
to run the RPC tests, a unix user would get an error when python
tried to import zmq.
There may be other dependencies that should be added to the docs,
particularly ones for non-unix systems. This is the only unlisted
dependency I encountered using linux.
2016-03-10 15:41:13 -08:00
MarcoFalke
fa97f95c15
[doc] Fix markdown
2016-03-01 14:35:19 +01:00
BtcDrak
6ba8b2a6c4
Add bip68-sequence.py to extended rpc tests
2016-02-13 15:42:24 +00:00
Wladimir J. van der Laan
80d1f2e483
Merge #7184 : Implement SequenceLocks functions for BIP 68
...
b043c4b
fix sdaftuar's nits again (Alex Morcos)
a51c79b
Bug fix to RPC test (Alex Morcos)
da6ad5f
Add RPC test exercising BIP68 (mempool only) (Suhas Daftuar)
c6c2f0f
Implement SequenceLocks functions (Alex Morcos)
2016-02-12 17:03:46 +01:00
Alex Morcos
a51c79be6b
Bug fix to RPC test
2016-02-10 16:01:04 -05:00
Suhas Daftuar
da6ad5f684
Add RPC test exercising BIP68 (mempool only)
2016-02-10 15:35:33 -05:00
Wladimir J. van der Laan
7539f1aae3
tests: Make proxy_test work on travis servers without IPv6
2016-02-09 12:37:05 +01:00
mrbandrews
7689041c03
[rpc-tests] Change solve() to use rehash
2016-02-04 14:36:11 -05:00
Wladimir J. van der Laan
62f2d769e4
Merge #7348 : MOVE ONLY: move rpc* to rpc/
...
d13f65e
rpc: update inline comments to refer to new file paths (Daniel Cousens)
a0eaff8
move rpc* to rpc/ (Daniel Cousens)
2016-01-28 11:28:24 +01:00
Wladimir J. van der Laan
9189e30b12
Merge #7300 : [trivial] Add missing copyright headers
...
fabcee1
Remove copyright header from autogenerated chainparamsseeds.h (MarcoFalke)
fa60d05
Add missing copyright headers (MarcoFalke)
fa7e4c0
Bump copyright headers to 2014 (MarcoFalke)
2016-01-27 12:06:31 +01:00
Wladimir J. van der Laan
02676c57ce
Merge #7236 : Use createrawtx locktime parm in txn_clone
...
e279038
Use createrawtx locktime parm in txn_clone (Tom Harding)
2016-01-22 16:57:47 +01:00
Wladimir J. van der Laan
93b05764d5
Merge #7177 : [qa] Change default block priority size to 0
...
fa8e2a6
[qa] Change default block priority size to 0 (MarcoFalke)
2016-01-22 13:26:49 +01:00
Daniel Cousens
d13f65ebac
rpc: update inline comments to refer to new file paths
2016-01-21 08:39:04 +11:00
MarcoFalke
fa8e2a6925
[qa] Change default block priority size to 0
2016-01-20 16:58:43 +01:00
Suhas Daftuar
eaa8d2754b
RPC: indicate which transactions are replaceable
...
Add "bip125-replaceable" output field to listtransactions and gettransaction
which indicates if an unconfirmed transaction, or any unconfirmed parent, is
signaling opt-in RBF according to BIP 125.
2016-01-19 08:30:04 -05:00
Wladimir J. van der Laan
3b43cad9d0
Merge pull request #7164 : Do not download transactions during initial blockchain sync
...
39a525c
Do not download transactions during inital sync (ptschip)
2016-01-19 12:58:15 +01:00
Wladimir J. van der Laan
21376af183
Merge pull request #7372
...
facd288
[qa] wallet: Print maintenance (MarcoFalke)
2016-01-18 16:24:14 +01:00
MarcoFalke
facd288c31
[qa] wallet: Print maintenance
2016-01-18 16:18:48 +01:00
Suhas Daftuar
4a04879378
Fix error in blockchain.py introduced in merge
2016-01-18 09:17:48 -05:00
Wladimir J. van der Laan
e4e77ee55d
Merge pull request #7194
...
135d6ec
Add RPC tests for getblockheader. (James O'Beirne)
4745636
Add RPC documentation for getblockheader[chainwork]. (James O'Beirne)
16d4fce
Add assert_is_hex_string and assert_is_hash_string to RPC test utils. (James O'Beirne)
2016-01-18 12:24:01 +01:00
Wladimir J. van der Laan
d3dfc6d7e1
Merge pull request #7320
...
fa1cb1a
[qa] Test walletpassphrase timeout (MarcoFalke)
2016-01-18 10:56:00 +01:00
Wladimir J. van der Laan
3ec5bb0a6e
Merge pull request #7335
...
7777994
[qa] Fix pyton syntax in rpc tests (MarcoFalke)
2016-01-18 10:46:01 +01:00
Wladimir J. van der Laan
a8bd616fea
Merge pull request #7329
...
9d263bd
Typo fixes in comments (Chris Wheeler)
2016-01-18 10:41:32 +01:00
Wladimir J. van der Laan
f2cf071e70
Merge pull request #7368
...
4d10d2e
Eliminate race condition in mempool_packages test (Suhas Daftuar)
2016-01-18 10:26:48 +01:00
Chris Wheeler
9d263bd17c
Typo fixes in comments
2016-01-17 11:03:56 +00:00
Suhas Daftuar
4d10d2e16f
Eliminate race condition in mempool_packages test
2016-01-14 20:35:21 -05:00
MarcoFalke
7777994846
[qa] Fix pyton syntax in rpc tests
2016-01-13 20:31:03 +01:00
Wladimir J. van der Laan
be6d5a617d
Merge pull request #7312
...
d11fc16
[Wallet] Call notification signal when a transaction is abandoned (Jonas Schnelli)
df0e222
Add RPC test for abandoned and conflicted transactions. (Alex Morcos)
01e06d1
Add new rpc call: abandontransaction (Alex Morcos)
9e69717
Make wallet descendant searching more efficient (Alex Morcos)
2016-01-13 15:47:45 +01:00
Alex Morcos
df0e2226d9
Add RPC test for abandoned and conflicted transactions.
2016-01-13 08:42:04 -05:00
Wladimir J. van der Laan
c49551886a
Merge pull request #7296
...
bebe58b
SQUASHME: Fix rpc tests that assumed fallback to minRelayTxFee (Alex Morcos)
e420a1b
Add sane fallback for fee estimation (Alex Morcos)
995b9f3
Always respect GetRequiredFee for wallet txs (Alex Morcos)
2016-01-13 11:04:31 +01:00
MarcoFalke
fa1cb1ae15
[qa] Test walletpassphrase timeout
2016-01-09 16:54:04 +01:00
Wladimir J. van der Laan
93ca5a35b0
Merge pull request #7308
...
168915e
Eliminate race condition in sendheaders.py test (Suhas Daftuar)
82a0ce0
Add race-condition debugging tool to mininode (Suhas Daftuar)
2016-01-09 16:30:33 +01:00
Suhas Daftuar
168915e6de
Eliminate race condition in sendheaders.py test
...
Clear the last block announcement before mining new blocks.
2016-01-07 09:23:05 -05:00
Suhas Daftuar
82a0ce09b4
Add race-condition debugging tool to mininode
2016-01-07 09:22:20 -05:00
Wladimir J. van der Laan
d964b5bb1a
Merge pull request #7229
...
fa33d97
[walletdb] Add missing LOCK() in Recover() for dummyWallet (MarcoFalke)
fa14d99
[qa] check if wallet or blochchain maintenance changes the balance (MarcoFalke)
fa0765d
[qa] Cleanup wallet.py test (MarcoFalke)
2016-01-07 09:17:11 +01:00
Alex Morcos
bebe58b748
SQUASHME: Fix rpc tests that assumed fallback to minRelayTxFee
2016-01-05 17:47:04 -05:00
MarcoFalke
fa60d05a4e
Add missing copyright headers
2016-01-05 21:34:15 +01:00
Wladimir J. van der Laan
605c17844e
Merge pull request #7205
...
fa71669
[devtools] Use git pretty-format for year parsing (MarcoFalke)
fa24439
Bump copyright headers to 2015 (MarcoFalke)
fa6ad85
[devtools] Rewrite fix-copyright-headers.py (MarcoFalke)
2016-01-05 14:11:40 +01:00
Wladimir J. van der Laan
49a735cba4
Merge pull request #7250
...
fa0a974
[qa] Move gen_return_txouts() to util.py (MarcoFalke)
2016-01-04 11:58:12 +01:00
MarcoFalke
fa0a9749eb
[qa] Move gen_return_txouts() to util.py
2015-12-24 12:26:36 +01:00
Wladimir J. van der Laan
97d83739db
Merge pull request #7153
...
7632cf6
[Tests] Refactor some shared functions (Jonas Schnelli)
110ff11
[Tests] Add mempool_limit.py test (Jonas Schnelli)
2015-12-22 14:06:50 +01:00
Wladimir J. van der Laan
595f93977c
Merge pull request #7213
...
37d271d
Rename OP_NOP2 to OP_CHECKLOCKTIMEVERIFY. (mb300sd)
2015-12-22 11:37:11 +01:00
Wladimir J. van der Laan
ed095f0407
Merge pull request #7226
...
9b41a5f
Add more tests to p2p-fullblocktest (Suhas Daftuar)
2015-12-22 09:54:27 +01:00
Wladimir J. van der Laan
c24337964f
Merge pull request #7062
...
901b01d
Remove GetMinRelayFee (Suhas Daftuar)
27fae34
Use fee deltas for determining mempool acceptance (Suhas Daftuar)
9ef2a25
Update replace-by-fee logic to use fee deltas (Suhas Daftuar)
eb30666
Fix mempool limiting for PrioritiseTransaction (Suhas Daftuar)
2015-12-21 17:14:13 +01:00
Tom Harding
e279038e84
Use createrawtx locktime parm in txn_clone
...
Streamlines the test and serves as a test of the createrawtransaction
locktime parameter.
2015-12-20 15:41:20 -08:00
MarcoFalke
fa14d99484
[qa] check if wallet or blochchain maintenance changes the balance
2015-12-18 12:37:29 +01:00
MarcoFalke
fa0765d433
[qa] Cleanup wallet.py test
...
* Remove outdated comment
* Remove unneeded 0s
* Remove semicolons
2015-12-18 12:37:08 +01:00
Suhas Daftuar
9b41a5fba2
Add more tests to p2p-fullblocktest
2015-12-18 05:39:31 -05:00
ptschip
39a525c21f
Do not download transactions during inital sync
2015-12-15 07:41:44 -08:00
mb300sd
37d271d7cc
Rename OP_NOP2 to OP_CHECKLOCKTIMEVERIFY.
2015-12-15 02:01:45 -05:00
James O'Beirne
135d6ec8ce
Add RPC tests for getblockheader.
2015-12-14 10:40:15 -08:00
James O'Beirne
16d4fce0b2
Add assert_is_hex_string and assert_is_hash_string to RPC test utils.
2015-12-14 10:40:11 -08:00
Wladimir J. van der Laan
83cdcbdca4
test: don't override BITCOIND and BITCOINCLI if they're set
...
In rpc-tests.py, don't override BITCOIND and BITCOINCLI if they're
already set. Makes it possible to run the tests with either another tree
or the GUI.
2015-12-14 14:18:12 +01:00
Jonas Schnelli
979698c171
[RPC-Tests] add option to run rpc test over QT clients
2015-12-14 12:54:55 +01:00
MarcoFalke
fa24439ff3
Bump copyright headers to 2015
2015-12-13 18:08:39 +01:00
Wladimir J. van der Laan
20411903d7
test: Add basic test for reject
code
...
Extend P2P test framework to make it possible to expect reject
codes for transactions and blocks.
2015-12-09 08:48:08 +01:00
Wladimir J. van der Laan
82bcf405f6
Merge pull request #7171
...
2f601d2
test: remove necessity to call create_callback_map (Wladimir J. van der Laan)
2015-12-07 12:43:44 +01:00
Wladimir J. van der Laan
4c40ec0451
tests: Disable Tor interaction
...
This is unnecessary during the current tests (any test for Tor
interaction can explicitly enable it) and interferes with the proxy
test.
2015-12-04 13:24:12 +01:00
Wladimir J. van der Laan
2f601d215d
test: remove necessity to call create_callback_map
...
Remove necessity to call create_callback_map (as well as the function
itself) from the Python P2P test framework. Invoke the appropriate
methods directly.
- Easy to forget to call it and wonder why it doesn't work
- Simplifies the code
- This makes it easier to handle new messages in subclasses
2015-12-04 13:15:59 +01:00
Jonas Schnelli
7632cf689a
[Tests] Refactor some shared functions
2015-12-03 13:25:27 +01:00
Wladimir J. van der Laan
8843676621
Merge pull request #7133
...
aa4b0c2
When not filtering blocks, getdata sends more in one test (Pieter Wuille)
d41e44c
Actually only use filterInventoryKnown with MSG_TX inventory messages. (Gregory Maxwell)
b6a0da4
Only use filterInventoryKnown with MSG_TX inventory messages. (Patick Strateman)
6b84935
Rename setInventoryKnown filterInventoryKnown (Patick Strateman)
e206724
Remove mruset as it is no longer used. (Gregory Maxwell)
ec73ef3
Replace setInventoryKnown with a rolling bloom filter. (Gregory Maxwell)
2015-12-03 13:16:46 +01:00
Suhas Daftuar
27fae3484c
Use fee deltas for determining mempool acceptance
2015-12-02 12:59:30 -05:00
Suhas Daftuar
9ef2a25603
Update replace-by-fee logic to use fee deltas
2015-12-02 12:59:30 -05:00
Suhas Daftuar
eb306664e7
Fix mempool limiting for PrioritiseTransaction
...
Redo the feerate index to be based on mining score, rather than fee.
Update mempool_packages.py to test prioritisetransaction's effect on
package scores.
2015-12-02 12:59:30 -05:00
Peter Todd
092e9ad7d9
Remove old replace-by-fee tests
...
Made redundant by tests in qa/rpc-tests/replace-by-fee.py
2015-12-02 18:26:53 +08:00
Jonas Schnelli
110ff1142c
[Tests] Add mempool_limit.py test
2015-12-02 08:36:05 +01:00
Wladimir J. van der Laan
16f4a6e0fe
Merge pull request #7137
...
cfdc662
Explicitly set chain limits in replace-by-fee test (Suhas Daftuar)
2015-12-01 13:32:21 +01:00
Wladimir J. van der Laan
2ef5ffa59a
Merge pull request #6915
...
2d8860e
Fix removeForReorg to use MedianTimePast (Suhas Daftuar)
b7fa4aa
Don't call removeForReorg if DisconnectTip fails (Suhas Daftuar)
7e49f5f
Track coinbase spends in CTxMemPoolEntry (Suhas Daftuar)
bb8ea1f
removeForReorg calls once-per-disconnect-> once-per-reorg (Matt Corallo)
474b84a
Make indentation in ActivateBestChainStep readable (Matt Corallo)
b0a064c
Fix comment in removeForReorg (Matt Corallo)
9b060e5
Fix removal of time-locked transactions during reorg (Matt Corallo)
0c9959a
Add failing test checking timelocked-txn removal during reorg (Matt Corallo)
2015-12-01 13:17:34 +01:00
Wladimir J. van der Laan
9afbd96919
Merge pull request #7022
...
50947ef
Change default block priority size to 0 (Alex Morcos)
2015-12-01 12:39:34 +01:00
Suhas Daftuar
2b31ab90c4
Add rpc test for prioritisetransaction
2015-12-01 11:03:57 +01:00
Suhas Daftuar
6e8b07f5f3
Add rounding helper function to util.py
2015-12-01 11:03:37 +01:00
Wladimir J. van der Laan
eb3d1b3487
Merge pull request #7135
...
fa3a38a
[qa] pull-tester: Cleanup (run keypool, tidy stdout) (MarcoFalke)
2015-12-01 09:56:09 +01:00
Wladimir J. van der Laan
30c2d8c635
Merge pull request #7105
...
9ac63d6
Keep track of explicit wallet conflicts instead of using mempool (Pieter Wuille)
2015-12-01 09:22:08 +01:00
Alex Morcos
50947ef23f
Change default block priority size to 0
...
Make RPC tests have a default block priority size of 50000 (the old default) so we can still use free transactions in RPC tests. When priority is eliminated, we will have to make a different change if we want to continue allowing free txs.
2015-11-30 16:16:24 -05:00
Gregory Maxwell
438ee59839
Merge pull request #7044
...
d52fbf0
Added additional config option for multiple RPC users. (Gregory Sanders)
2015-11-30 12:25:28 -08:00
Matt Corallo
0c9959a308
Add failing test checking timelocked-txn removal during reorg
2015-11-30 13:02:04 -05:00
Suhas Daftuar
cfdc66280f
Explicitly set chain limits in replace-by-fee test
2015-11-30 12:35:24 -05:00
MarcoFalke
fa3a38a7f2
[qa] pull-tester: Cleanup (run keypool, tidy stdout)
...
* Run keypool (takes 6 seconds)
* Print duration of each rpc test
* Structure output (bold, new lines)
2015-11-30 16:01:57 +01:00
Pieter Wuille
aa4b0c26b0
When not filtering blocks, getdata sends more in one test
2015-11-30 13:29:20 +01:00
Wladimir J. van der Laan
a7751824ce
Merge pull request #7103
...
fa506c0
[wallet] Add rpc tests to verify fee calculations (MarcoFalke)
4b89f01
Default fPayAtLeastCustomFee to false (Ryan Havar)
2015-11-30 12:18:20 +01:00
Wladimir J. van der Laan
6fc287f2df
Merge pull request #7027
...
4ea1790
[qa] keypool: DRY: Use test framework (MarcoFalke)
c6973ca
[qa] keypool: Fix white space to prepare transition to test framework (MarcoFalke)
2015-11-30 12:15:21 +01:00
Gregory Sanders
d52fbf00e3
Added additional config option for multiple RPC users.
2015-11-29 08:34:20 -05:00
Pieter Wuille
9ac63d6d30
Keep track of explicit wallet conflicts instead of using mempool
2015-11-29 13:24:02 +01:00
Suhas Daftuar
50262d8953
Allow block announcements with headers
...
This replaces using inv messages to announce new blocks, when a peer requests
(via the new "sendheaders" message) that blocks be announced with headers
instead of inv's.
Since headers-first was introduced, peers send getheaders messages in response
to an inv, which requires generating a block locator that is large compared to
the size of the header being requested, and requires an extra round-trip before
a reorg can be relayed. Save time by tracking headers that a peer is likely to
know about, and send a headers chain that would connect to a peer's known
headers, unless the chain would be too big, in which case we revert to sending
an inv instead.
Based off of @sipa's commit to announce all blocks in a reorg via inv,
which has been squashed into this commit.
Rebased-by: Pieter Wuille
2015-11-29 11:59:23 +01:00
MarcoFalke
fa506c0c9b
[wallet] Add rpc tests to verify fee calculations
2015-11-28 22:52:13 +01:00
Wladimir J. van der Laan
0e935865b9
Merge pull request #6871
...
63b5840
Fix usage of local python-bitcoinlib (Peter Todd)
16a2f93
Fix incorrect locking of mempool during RBF replacement (Peter Todd)
97203f5
Port test to rpc-test framework (Suhas Daftuar)
20367d8
Add test for max replacement limit (Suhas Daftuar)
73d9040
Improve RBF replacement criteria (Suhas Daftuar)
b272ecf
Reject replacements that add new unconfirmed inputs (Peter Todd)
fc8c19a
Prevent low feerate txs from (directly) replacing high feerate txs (Peter Todd)
0137e6f
Add tests for transaction replacement (Peter Todd)
5891f87
Add opt-in full-RBF to mempool (Peter Todd)
2015-11-27 13:20:39 +01:00
Wladimir J. van der Laan
e92377fa7f
Merge pull request #6134
...
e304432
Pass reference to estimateSmartFee and cleanup whitespace (Suhas Daftuar)
56106a3
Expose RPC calls for estimatesmart functions (Alex Morcos)
e93a236
add estimateSmartFee to the unit test (Alex Morcos)
6303051
EstimateSmart functions consider mempool min fee (Alex Morcos)
f22ac4a
Increase success threshold for fee estimation to 95% (Alex Morcos)
4fe2823
Change wallet and GUI code to use new smart fee estimation calls. (Alex Morcos)
22eca7d
Add smart fee estimation functions (Alex Morcos)
2015-11-27 12:59:37 +01:00
Wladimir J. van der Laan
ed34e0577e
Merge pull request #7052
...
a0953cd
[qa] python-bitcoinrpc is no longer a subtree (MarcoFalke)
2015-11-24 09:29:46 +01:00
Gregory Maxwell
0b0fc179ab
Merge pull request #7028
...
e16ee1c
[qa] Extend README.md (MarcoFalke)
cc97574
[qa] Split README.md to /qa and /qa/rpc-tests (MarcoFalke)
2015-11-22 14:51:30 -08:00
Gregory Maxwell
9cdd407ca5
Merge pull request #7029
...
c800c95
Remove unmaintained example test script_test.py (Suhas Daftuar)
2015-11-22 14:47:40 -08:00
Peter Todd
63b5840257
Fix usage of local python-bitcoinlib
...
Previously was using the system-wide python-bitcoinlib, if it existed,
rather than the local copy that you check out in the README.
2015-11-20 16:23:01 -05:00
Wladimir J. van der Laan
07b770caf3
Merge pull request #7019
...
33b7f83
[qa] travis: cover *receivedby* rpcs (MarcoFalke)
2015-11-20 09:01:07 +01:00
MarcoFalke
a0953cdf07
[qa] python-bitcoinrpc is no longer a subtree
...
* Only authproxy.py is taken from the python-bitcoinrpc
2015-11-19 12:39:49 +01:00
MarcoFalke
e16ee1cd1e
[qa] Extend README.md
2015-11-18 11:59:12 +01:00
MarcoFalke
cc975745d5
[qa] Split README.md to /qa and /qa/rpc-tests
...
+ Update with new -help message
2015-11-17 13:03:59 +01:00
Alex Morcos
56106a3300
Expose RPC calls for estimatesmart functions
...
Also add testing for estimatesmartfee in smartfees.py
2015-11-16 15:42:31 -05:00
Suhas Daftuar
c800c95997
Remove unmaintained example test script_test.py
2015-11-16 09:50:50 -05:00
MarcoFalke
4ea1790553
[qa] keypool: DRY: Use test framework
2015-11-16 12:01:32 +01:00
MarcoFalke
c6973ca03b
[qa] keypool: Fix white space to prepare transition to test framework
2015-11-16 12:01:32 +01:00
MarcoFalke
33b7f83c59
[qa] travis: cover *receivedby* rpcs
2015-11-14 22:33:13 +01:00
Jonas Schnelli
d61fcff071
don't enforce maxuploadtargets disconnect for whitelisted peers
2015-11-13 21:04:12 +01:00
Wladimir J. van der Laan
d2e987aa19
Merge pull request #6958
...
9c3ee3b
[doc] Add -maxuploadtarget release notes (MarcoFalke)
b27e81f
[net] Cleanup maxuploadtarget (MarcoFalke)
2015-11-13 13:27:33 +01:00
Jeff Garzik
38ed190eef
Merge #6771 from branch 'lowerLimits' of git://github.com/morcos/bitcoin
2015-11-12 15:38:59 -05:00
MarcoFalke
b27e81f115
[net] Cleanup maxuploadtarget
...
* log: nMaxOutboundLimit is in bytes
* log: Hide misleading -maxuploadtarget=0 warning
* qa : Minor cleanup to maxuploadtarget rpc tests
* net: Use DEFAULT_MAX_UPLOAD_TARGET = 0
2015-11-12 20:45:57 +01:00
Wladimir J. van der Laan
5fcc14ee05
Merge pull request #6804
...
b5cbd39
Add basic coverage reporting for RPC tests (James O'Beirne)
2015-11-12 08:22:36 +01:00
James O'Beirne
b5cbd396ca
Add basic coverage reporting for RPC tests
...
Thanks to @MarcoFalke @dexX7 @laanwj for review.
2015-11-11 10:33:43 -08:00
Suhas Daftuar
97203f5606
Port test to rpc-test framework
2015-11-10 14:14:46 -05:00
Suhas Daftuar
20367d831f
Add test for max replacement limit
2015-11-10 14:14:07 -05:00
Peter Todd
b272ecfdb3
Reject replacements that add new unconfirmed inputs
2015-11-10 14:14:07 -05:00
Peter Todd
fc8c19a07c
Prevent low feerate txs from (directly) replacing high feerate txs
...
Previously all conflicting transactions were evaluated as a whole to
determine if the feerate was being increased. This meant that low
feerate children pulled the feerate down, potentially allowing a high
transaction with a high feerate to be replaced by one with a lower
feerate.
2015-11-10 14:14:07 -05:00
Peter Todd
0137e6fafd
Add tests for transaction replacement
2015-11-10 14:14:07 -05:00
Wladimir J. van der Laan
2980a18572
Fix crash in validateaddress with -disablewallet
...
Fix a null pointer dereference in validateaddress with -disablewallet. Also add a regression testcase.
2015-11-09 08:44:19 +01:00
Wladimir J. van der Laan
26752767df
Merge pull request #6894
...
3e187f2
Fix BIP65 p2p test (Suhas Daftuar)
2015-10-29 13:12:47 +01:00
Alex Morcos
971a4e6b86
Lower default policy limits
...
Reduce the default limits on maximum number of transactions and the cumulative size of those transactions in both ancestor and descendant packages to 25 txs and 101kb total size.
2015-10-27 23:59:19 -04:00
Pieter Wuille
298e040bca
Fix chainstate serialized_size computation
2015-10-28 01:05:32 +01:00
Suhas Daftuar
3e187f2acd
Fix BIP65 p2p test
...
create_coinbase() was being called with the wrong arguments
2015-10-27 15:36:06 -04:00
Suhas Daftuar
17a073ae06
Add RPC test for -maxuploadtarget
2015-10-26 15:40:38 +01:00
Wladimir J. van der Laan
2a1090d4f5
Merge pull request #6351
...
65ef372
Add BIP65 to getblockchaininfo softforks list (Peter Todd)
cde7ab2
Add RPC tests for the CHECKLOCKTIMEVERIFY (BIP65) soft-fork (Peter Todd)
287f54f
Add CHECKLOCKTIMEVERIFY (BIP65) soft-fork logic (Peter Todd)
2015-10-23 13:33:13 +02:00
Wladimir J. van der Laan
0fbfc5106c
Merge pull request #6859
...
41db8c4
http: Restrict maximum size of request line + headers (Wladimir J. van der Laan)
2015-10-21 11:19:25 +02:00
Wladimir J. van der Laan
41db8c4733
http: Restrict maximum size of request line + headers
...
Prevent memory exhaustion by sending lots of data.
Also add a test to `httpbasics.py`.
Closes #6425
2015-10-20 14:31:40 +02:00
Wladimir J. van der Laan
020c4073a0
Merge pull request #6841
...
b6d5e32
Make fee aware of min relay in pruning.py RPC test (Alex Morcos)
2015-10-20 12:53:45 +02:00
Wladimir J. van der Laan
87e5539e9c
Merge pull request #6827
...
bd4c22e
[rpc-tests] Check return code (MarcoFalke)
0d8b175
[rpc-tests] fundrawtransaction: Update fee after minRelayTxFee increase (MarcoFalke)
2015-10-20 12:21:25 +02:00
MarcoFalke
bd4c22ed56
[rpc-tests] Check return code
2015-10-20 10:28:42 +02:00
MarcoFalke
0d8b1759d2
[rpc-tests] fundrawtransaction: Update fee after minRelayTxFee increase
2015-10-20 10:25:45 +02:00
Alex Morcos
b6d5e32e0e
Make fee aware of min relay in pruning.py RPC test
2015-10-17 15:52:40 -04:00
Alex Morcos
0658d0ba82
temporarily comment out rpcbind.py
...
until libevent is fixed. also remove duplicate commented-out forknotify.py.
2015-10-16 10:27:03 -04:00
Wladimir J. van der Laan
9caaf6ed22
Merge pull request #6777
...
dcd8e27
Refer to obfuscate_key via pointer in peripheral CLevelDB classes (James O'Beirne)
1488506
Add tests for gettxoutsetinfo, CLevelDBBatch, CLevelDBIterator (James O'Beirne)
0fdf8c8
Handle obfuscation in CLevelDBIterator (James O'Beirne)
3499ce1
Encapsulate CLevelDB iterators cleanly (Pieter Wuille)
2015-10-13 12:23:45 +02:00
James O'Beirne
1488506872
Add tests for gettxoutsetinfo, CLevelDBBatch, CLevelDBIterator
...
Thanks @dexX7.
2015-10-09 10:56:39 -07:00
MarcoFalke
d0321a4cfd
[doc] trivial: fix markdown syntax in qa/rpc-tests/README.md
2015-10-09 17:09:29 +02:00
Peter Todd
cde7ab2d4e
Add RPC tests for the CHECKLOCKTIMEVERIFY (BIP65) soft-fork
...
bip65-cltv.py is based on the earlier BIP66 soft-fork RPC test
implemented by Pieter Wuille's 819bcf9b99
bip65-cltv-p2p.py is based on the earlier BIP66 P2P test by Suhas
Daftuar's d76412b068
2015-10-08 17:25:25 +02:00
randy-waterhouse
efb37d4fda
Changed run-bitcoind-for-test.sh.in to non-executable mode.
...
Consistency with other *.in input files.
2015-10-05 13:25:13 +01:00
Jeff Garzik
3ab3de8ba1
qa/pull-tester/rpc-tests.py: chmod 0755
...
Fix file mode to be executable.
Include dummy whitespace change to force git to change mode.
2015-10-04 15:08:18 -04:00
ptschip
5467820be5
Migrated rpc-tests.sh to all python rpc-tests.py
...
1) created rpc-tests.py
2) deleted rpc-tests.sh
3) travis.yml points to rpc-tests.py
4) Modified Makefile.am
5) Updated README.md
6) Added tests_config.py and deleted tests-config.sh
7) Modified configure.ac with script to set correct path in tests_config.py
2015-10-01 11:28:11 -07:00
Wladimir J. van der Laan
17d0e638b6
Merge pull request #6686
...
745f909
travis: install a recent libzmq and pyzmq for tests (Cory Fields)
a9c27cd
[travis] add zmq python module (Jonas Schnelli)
110a1fd
enable zmq-test in rpc-tests.sh (Jonas Schnelli)
2015-10-01 16:22:26 +02:00
Cory Fields
745f909925
travis: install a recent libzmq and pyzmq for tests
2015-10-01 15:40:57 +02:00
Jonas Schnelli
a9c27cdf55
[travis] add zmq python module
2015-10-01 14:02:26 +02:00
Wladimir J. van der Laan
48efbdbe98
Merge pull request #5264
...
af3208b
Resolve issue 3166. These changes decode valid SIGHASH types on signatures in assembly (asm) representations of scriptSig scripts. This squashed commit incorporates substantial helpful feedback from jtimon, laanwj, and sipa. (mruddy)
2015-09-25 19:19:07 +02:00
Suhas Daftuar
598b25d5ee
Add test showing bug in mempool packages
2015-09-23 15:12:19 -04:00
Wladimir J. van der Laan
e59d2a80f9
Merge pull request #6315
...
7aac6db
[QT] dump banlist to disk in case of ban/unban over QT (Jonas Schnelli)
7f90ea7
[QA] adabt QT_NO_KEYWORDS for QT ban implementation (Jonas Schnelli)
07f70b2
[QA] fix netbase tests because of new CSubNet::ToString() output (Jonas Schnelli)
4ed0510
[Qt] call DumpBanlist() when baning unbaning nodes (Philip Kaufmann)
be89292
[Qt] reenabling hotkeys for ban context menu, use different words (Jonas Schnelli)
b1189cf
[Qt] adapt QT ban option to banlist.dat changes (Jonas Schnelli)
65abe91
[Qt] add sorting for bantable (Philip Kaufmann)
51654de
[Qt] bantable polish (Philip Kaufmann)
cdd72cd
[Qt] simplify ban list signal handling (Philip Kaufmann)
43c1f5b
[Qt] remove unused timer-code from banlistmodel.cpp (Jonas Schnelli)
e2b8028
net: Fix CIDR notation in ToString() (Wladimir J. van der Laan)
9e521c1
[Qt] polish ban table (Philip Kaufmann)
607809f
net: use CIDR notation in CSubNet::ToString() (Jonas Schnelli)
53caec6
[Qt] bantable overhaul (Jonas Schnelli)
f0bcbc4
[Qt] bantable fix timestamp 64bit issue (Jonas Schnelli)
6135309
[Qt] banlist, UI optimizing and better signal handling (Jonas Schnelli)
770ca79
[Qt] add context menu with unban option to ban table (Jonas Schnelli)
5f42132
[Qt] add ui signal for banlist changes (Jonas Schnelli)
ad204df
[Qt] add banlist table below peers table (Jonas Schnelli)
50f0908
[Qt] add ban functions to peers window (Jonas Schnelli)
2015-09-22 13:39:38 +02:00
Wladimir J. van der Laan
5e21388c48
Merge pull request #6695
...
ddf98d1
Make RPC tests cope with server-side timeout between requests (Wladimir J. van der Laan)
2190ea6
rpc: Split option -rpctimeout into -rpcservertimeout and -rpcclienttimeout (Wladimir J. van der Laan)
8b2d6ed
http: Disable libevent debug logging, if not explicitly enabled (Wladimir J. van der Laan)
5ce43da
init: Ignore SIGPIPE (Wladimir J. van der Laan)
2015-09-21 17:16:40 +02:00
Wladimir J. van der Laan
ddf98d1d84
Make RPC tests cope with server-side timeout between requests
...
Python's httplib does not graciously handle disconnections from the http server, resulting in BadStatusLine errors.
See https://bugs.python.org/issue3566 "httplib persistent connections violate MUST in RFC2616 sec 8.1.4."
This was fixed in Python 3.5.
Work around it for now.
2015-09-21 17:15:37 +02:00
Suhas Daftuar
5add7a74a6
Track transaction packages in CTxMemPoolEntry
...
Associate with each CTxMemPoolEntry all the size/fees of descendant
mempool transactions. Sort mempool by max(feerate of entry, feerate
of descendants). Update statistics on-the-fly as transactions enter
or leave the mempool.
Also add ancestor and descendant limiting, so that transactions can
be rejected if the number or size of unconfirmed ancestors exceeds
a target, or if adding a transaction would cause some other mempool
entry to have too many (or too large) a set of unconfirmed in-
mempool descendants.
2015-09-19 13:25:48 -04:00
Jonas Schnelli
110a1fd727
enable zmq-test in rpc-tests.sh
2015-09-17 20:04:34 +02:00
Jeff Garzik
83f0e22497
Temporarily disable ZMQ tests in bitcoin test suite
2015-09-17 11:44:55 -04:00