Commit Graph

70 Commits

Author SHA1 Message Date
Duke Leto
2eae4d2377 test suite tweaks 2019-12-15 20:36:13 -05:00
ca333
41a7dcf549 add mempool tests 2019-10-02 23:57:21 +02:00
jl777
58cd849591 Jl777 (#1311)
* Remove voutsum check

* Teach RPC interface about dpow-enabled minconfs (#1231)

* Make minconfs dpow-aware in z_listunspent + z_listreceivedbyaddress

* Add dpow-related test files to test suite

* Add dpow simulation to regtest every 7 blocks

* Fix compiler errors

* Fix link error

* Fix stdout spam when running regtests

* Dpowminconfs for listreceivedbyaddress

* dpowconfs tests

* Start adding specific tests for dpowminconfs in listreceivedbyaddress

* Get dpowminconfs tests for listreceivedbyaddress working

* Add dpowminconfs to getreceivedbyaddress + listunspent

* Add test for listtransactions + getreceivedbyaddress support

* Reliably passing dpowminconf tests. We only check for notarized-ness now, not exact confirmation numbers, to avoid race conditions

* Poll for the expected notarization info before running further tests; add support for getbalance

* Migrate tx_height() to a place where asyncrpcoperation_sendmany.cpp can use it

* fix

* Teach GetFilteredNotes about dpowconfs

Many RPCs rely on this internal function, which now correctly uses
dpowconfs to filter by the minconf/maxconf parameters.

* Fix sendmany when using non-default minconf

* inline seems to make things happy

* cleanup

* Add some code to test z_sendmany, which points out https://github.com/jl777/komodo/issues/1247

* try this

* Use already calculated value of dpowconfs instead of calculating it again

* Cleanup .pack file

* Remove

* Remove .pack
2019-03-03 21:42:12 -11:00
Anton Lysakov
69a3c68365 small CC tests refactor 2018-12-15 03:24:07 +06:00
jl777
4458e675a2 Merge pull request #969 from tonymorony/FSM
CC auto-tests changes
2018-11-22 23:01:56 -11:00
Anton Lysakov
3a1f15a5ef start node is specific now for cryptoconditions tests 2018-11-23 10:57:06 +06:00
Anton Lysakov
572db45f9d repaired faucet tests by second node adding 2018-11-21 20:46:36 +06:00
Anton Lysakov
ec6811d60f initial version of multi-nodes testing 2018-11-21 15:55:53 +06:00
miketout
99aeab28f9 Integrate latest Zcash fixes and update for non-latin user names 2018-10-27 20:29:03 -07:00
Eirik Ogilvie-Wigley
882a4f577f Fix potentially misleading test failures 2018-10-24 13:53:25 -06:00
miketout
644c7445ec Latest Zcash updates 2018-09-20 13:32:57 -07:00
Homu
379c7439a0 Auto merge of #3479 - Eirik0:rpc-test-cleanup, r=bitcartel
Rpc test cleanup

The main purpose of this PR was to inline the method 'wait_for_async_operation_id' from util.py in tests where we were doing this manually. To make it work in all cases, I had to change the method to return the result in the case where the call failed. I also did a bit of general clean up (removing semicolons) in the files which I changed.
2018-09-18 20:05:39 -07:00
miketout
9feb4b9e08 Major updates integration from all upstreams 2018-09-18 14:33:53 -07:00
Eirik Ogilvie-Wigley
5602e1f1a6 Allow passing timeout parameter to wait_and_assert_operationid_status 2018-09-14 18:41:14 -06:00
Eirik Ogilvie-Wigley
4d89d020a6 Remove unneeded semicolons 2018-09-14 18:41:14 -06:00
Eirik Ogilvie-Wigley
611f93244b Allow more information to be returned when an async rpc fails 2018-09-14 18:41:14 -06:00
Jack Grigg
8e057ad9ee qa: Test both Overwinter and Sapling peer management 2018-09-12 12:15:37 +01:00
Jonathan "Duke" Leto
941619eb46 Make the REGTEST AC special in our test suite, so we get a predictable rpc port number 2018-08-11 19:14:51 +02:00
Jonathan "Duke" Leto
700c1fcfc3 Improve error checking on funds argument to faucetfund 2018-08-09 22:54:23 +02:00
Jonathan "Duke" Leto
d48c67574f Improve faucetaddress tests 2018-08-07 21:45:32 +02:00
Jonathan "Duke" Leto
8d454fb58e Sleep a bit to give time for regtest komodod to start 2018-08-07 21:32:56 +02:00
Jonathan "Duke" Leto
dcc6cdb083 Remove reference to REGTEST.conf in start_node which all tests use, not just CC tests. it is passed via extra_args 2018-08-07 21:24:33 +02:00
Jonathan "Duke" Leto
eb8f0960e1 Fix some docs and references to bitcoind 2018-08-07 21:23:05 +02:00
Jonathan "Duke" Leto
38a2d0c825 Pass along extra_args correctly to get correct rpc user/pass 2018-08-07 20:57:42 +02:00
Jonathan "Duke" Leto
3528faa711 Use correct rpc user/pass; this only works the second time its run, some kind of timing/caching issue 2018-08-07 20:51:12 +02:00
Jonathan "Duke" Leto
626af0e73e Getting closer, invalid rpc user/pass instead of wrong port 2018-08-07 20:13:32 +02:00
Jonathan "Duke" Leto
5ec4373ca4 More debugging trying to make getblockcount work and not have komodod hang the test 2018-08-07 09:22:40 +02:00
Jonathan "Duke" Leto
32829f6d6f Fix various test suite bugs and create CC AC in our tests 2018-08-07 08:13:18 +02:00
Jonathan "Duke" Leto
f4cdde0e85 Enable txindex in regtest komodo.confs and update binary in initialize_chain 2018-08-06 08:09:15 -07:00
Jonathan "Duke" Leto
3ccd5a79e5 Look for the correct config file in our tests 2018-08-06 00:43:31 -07:00
Larry Ruane
c0aa34a4b2 generalize mininode.py protocol versioning 2018-08-02 20:30:20 -06:00
Eirik Ogilvie-Wigley
a81b36d267 Add more options when asserting in RPC tests 2018-05-04 09:38:36 -06:00
Jack Grigg
3fe2f3d143 Update -enforcenodebloom RPC test with filterclear vs filteradd 2018-04-05 01:30:38 +01:00
Jack Grigg
b77e46fe01 Add RPC test for -enforcenodebloom 2018-04-05 01:30:38 +01:00
Jack Grigg
10e97b8f00 test: Add missing Overwinter fields to mininode's CTransaction 2018-04-04 22:49:49 +01:00
Daira Hopwood
697140ede5 Add support for Overwinter v3 transactions to mininode framework. 2018-04-04 00:01:23 +01:00
Jack Grigg
b7caaf954b test: Move wait_and_assert_operationid_status debug output before asserts
Otherwise we don't see them for failed tests :)
2018-03-19 14:00:18 +01:00
Simon
b6e5cc7d27 Add python qa test overwinter_peer_management. 2018-02-23 14:22:43 -08:00
Jack Grigg
57e6ecda5a Implement roll-back limit for reorganisation
Closes #713.
2018-02-19 16:32:42 +00:00
Per Grön
d4ab94a6d9 Print result of RPC call in test only when PYTHON_DEBUG is set 2017-12-16 19:24:25 +01:00
Per Grön
8993edfb77 Deduplicate test utility method wait_and_assert_operationid_status
Strictly speaking this is not a true deduplication; the test output will be
slightly different (due to inconsistent print statements) but I think this is
close enough.
2017-12-16 19:24:25 +01:00
Jack Grigg
c10c40779d [Test] MiniNode: Implement Zcash coinbase 2017-10-05 15:18:53 +01:00
Jack Grigg
7596a4922d [Test] MiniNode: Coerce OP_PUSHDATA bytearrays to bytes
If a bytearray is passed in as part of an iterable, the CScript constructor
fails because b''.join() cannot be used to join a bytearray to a bytes or str in
Python 2.
2017-10-05 15:18:31 +01:00
Jack Grigg
643235859a [Test] MiniNode: Fix coinbase creation
CScriptNum is only used for heights > 16.
2017-10-05 15:18:27 +01:00
Jack Grigg
e68c3ec188 [Test] MiniNode: Use Zcash PoW
Equihash solver code extracted from https://github.com/str4d/zcash-pow

RPC tests now require pyblake2 to be installed
2017-10-05 15:15:10 +01:00
Jack Grigg
0de9a481ab [Test] MiniNode: Update protocol version and network magics 2017-10-05 15:15:10 +01:00
Jack Grigg
31bc3d2581 [Test] MiniNode: Implement Zcash block parsing 2017-10-05 15:15:10 +01:00
Jack Grigg
c47dc872a7 [Test] MiniNode: Implement v2 CTransaction parsing 2017-10-05 15:15:10 +01:00
Jack Grigg
13ca1e8011 [Test] MiniNode: Implement JSDescription parsing 2017-10-05 15:15:06 +01:00
Daira Hopwood
ff0f305497 Cosmetics (trailing whitespace, comment conventions, etc.)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2017-06-22 18:09:05 +01:00