Daira Hopwood
5e84362702
Reduce the default fee for z_* operations, and the "low fee penalty" threshold for mempool limiting, to 1000 zatoshis.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-12-18 12:37:03 -07:00
Dimitris Apostolou
f459e43dc9
Update links
2020-12-13 11:24:44 +02:00
MarcoFalke
0a73a0fbd9
[qa] test_framework: Exit when tmpdir exists
2020-11-21 03:03:15 +00:00
MarcoFalke
b25a63593e
[qa] Use single cache dir for chains
2020-11-21 03:02:41 +00:00
MarcoFalke
dbb41d1082
[qa] Adjust timeouts for micro-optimization of run time
2020-11-21 03:02:41 +00:00
whythat
3c7f4ca809
[qa]: add parsing for '<host>:<port>' argument form to rpc_url()
2020-11-21 03:02:41 +00:00
MarcoFalke
63a3c9aceb
[qa] test_framework: Use different rpc_auth_pair for each node
2020-11-21 02:34:47 +00:00
Suhas Daftuar
2399cfc7ba
Tests: add timeout to sync_blocks() and sync_mempools()
...
Previously these functions would infinitely loop if sync failed;
now they have a default timeout of 60 seconds, after which an
AssertionError is raised.
sync_blocks() has also been improved and now compares the tip
hash of each node, rather than just using block count.
Zcash: Kept block count check for a couple of tests where we use it.
2020-11-21 02:34:47 +00:00
MarcoFalke
17caf1ddd1
[qa] test_framework: Append portseed to tmpdir
...
This makes it possible to specify a tmpdir while running tests in
parallel
2020-11-21 02:34:47 +00:00
MarcoFalke
818d2de39b
[qa] Remove hardcoded "4 nodes" from test_framework
...
Zcash: Applied changes to our RPC tests.
2020-11-21 02:34:47 +00:00
MarcoFalke
5a12bc9d83
[qa] Add option --portseed to test_framework
2020-11-21 02:33:27 +00:00
MarcoFalke
5f13446dee
[qa] Stop other nodes, even when one fails to stop
2020-11-21 02:33:27 +00:00
MarcoFalke
08256c9ec6
[qa] Refactor test_framework and pull tester
...
* log to stdout
* increase range for p2p and rpc ports
* UPPERCASE_CONSTANTS
* Stop nodes on CTRL+C
2020-11-21 02:33:27 +00:00
MarcoFalke
15721275d0
[qa] Switch to py3
...
Zcash: We already did this, so most of the backported changes are
ancillary (license header updates and style), but a few are relevant.
2020-11-21 02:33:27 +00:00
MarcoFalke
db761077e5
[qa] mininode: Catch exceptions in got_data
2020-11-21 02:33:27 +00:00
MarcoFalke
65a6249d41
[qa] Use python2/3 syntax
2020-11-21 02:33:27 +00:00
Casey Rodarmor
4761c9f2bc
Add p2p-fullblocktest.py
...
Zcash: Includes pyflakes changes.
2020-11-20 03:32:53 +00:00
Jack Grigg
a7f9365fb8
test: Set hashFinalSaplingRoot default correctly in create_block
2020-11-18 11:12:09 +00:00
Jack Grigg
030a685392
test: Fix SignatureHash RPC test helper
...
- Check validity of inIdx.
- ZIP 143 and 243 support.
2020-11-18 11:11:54 +00:00
Jack Grigg
bbed3ecc3c
test: Remove FindAndDelete from RPC test framework
2020-11-17 18:48:32 +00:00
Jack Grigg
8bc0a591a0
Revert "remove SignatureHash from python rpc tests"
...
This reverts commit 910ff448d6
.
2020-11-17 18:48:32 +00:00
Jesse Cohen
aead91419e
[doc][trivial] no retargeting in regtest mode
2020-11-17 18:48:32 +00:00
Jack Grigg
337e528d33
python: Explicitly set encoding to utf8 when opening text files
2020-11-09 23:06:21 +00:00
Wladimir J. van der Laan
5295079b2e
test: Explicitly set encoding to utf8 when opening text files
...
These are text files but their encoding does not depend on the locale.
Not all of them require utf8 but it is better to fix it at something
to remove potential unpredictability.
This is necessary on FreeBSD where no locale is set by default,
and apparently Python defaults not only the terminal encoding to the locale
but that of every text file. So without LOCALE environment it defaults text
file encoding to ASCII. This causes problems with e.g. `bitcoin.conf`.
Luckily the locale doesn't affect the default encoding for str.encode() and
bytes.decode() on Python 3, so this is the only change necessary.
2020-11-09 22:59:04 +00:00
Jack Grigg
ee079a683b
test: Fix various pyflakes warnings
2020-10-16 16:00:02 +01:00
Homu
3caa784970
Auto merge of #2778 - syd0:add-python-assert, r=daira
...
Add assert_raises_message to the python test framework.
2020-09-03 14:26:54 +00:00
Taylor Hornby
51b9e230d2
Add a missing % to a string interpolation in rpc test framework
2020-08-26 14:47:48 -06:00
Kris Nuttycombe
e456d87cbf
Merge remote-tracking branch 'upstream/master' into zip-207
2020-07-09 08:23:57 -06:00
therealyingtong
f24e706079
Replace leadByte in SaplingNote with is_zip_212
2020-07-02 15:37:32 +08:00
Jack Grigg
efd04b920b
Implement zip-207 and zip-214.
...
Add funding streams to consensus parameters.
Add funding stream payments to coinbase txns generated by the miner.
* Reduce valueBalance for shielded outputs to funding streams.
* Ensure we produce binding signatures in any case where shielded
outputs go to either a funding stream or the miner.
2020-06-25 16:15:50 -06:00
Daira Hopwood
c1227ae67c
Rename NU4 to Canopy in constant and function names.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-05-28 13:11:48 +01:00
Kris Nuttycombe
9061f8251e
Merge remote-tracking branch 'upstream/master' into hotfix-v2.1.2-2-golden
2020-05-14 12:24:44 -06:00
Kris Nuttycombe
8542522732
Merge branch 'release/v2.1.1-1' into release/v2.1.2
2020-05-07 19:02:45 -06:00
Kris Nuttycombe
a546caffc9
Add baseline for golden testing across network upgrade boundaries.
2020-05-07 16:34:44 -06:00
Kris Nuttycombe
35ff8d9bf2
Remove unused imports.
2020-05-05 11:41:06 -06:00
Kris Nuttycombe
e7eff424c1
Update qa/rpc-tests/test_framework/mininode.py
...
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2020-05-02 18:31:26 -06:00
Kris Nuttycombe
2de5a2cb2d
Use `%x` formatter for branch id hex string in test_framework/util.py
...
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2020-05-02 18:31:13 -06:00
Kris Nuttycombe
1508345a20
Merge remote-tracking branch 'upstream/master' into bug/4119-rewind_detection
2020-05-01 17:33:53 -06:00
Jack Grigg
7e684120d3
Add NU4 test helpers
2020-05-01 11:38:32 +12:00
Kris Nuttycombe
5a8f6f8058
Merge remote-tracking branch 'upstream/master' into bug/4119-rewind_detection
2020-04-22 14:58:11 -06:00
Dimitris Apostolou
5f2e015aa3
Fix typos
2020-04-15 13:24:00 +03:00
Kris Nuttycombe
f432ceff31
Add a test reproducing the off-by-one error.
2020-04-14 13:37:40 -06:00
Jack Grigg
21d8e5be15
Comment clarifications and fixes
2020-04-11 11:39:00 +12:00
Jack Grigg
cb57c17eb6
test: Verify ZIP 221 logic against reference implementation
2020-04-08 08:49:01 +12:00
NicolasDorier
b0d81be4cd
[qa] assert_start_raises_init_error
...
Zcash: Excludes wallet-hd.py change (missing bitcoin/bitcoin#8309 )
2020-03-24 21:55:08 +13:00
Wladimir J. van der Laan
11240d0928
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 ).
2020-03-24 21:55:08 +13:00
James O'Beirne
d38a012970
Add basic coverage reporting for RPC tests
...
Thanks to @MarcoFalke @dexX7 @laanwj for review.
Zcash: Includes all the backend changes, but excludes the --coverage flag
added to rpc-tests.py as we have not yet migrated away from rpc-tests.sh.
2020-03-24 21:51:51 +13:00
ptschip
8f863b2817
Enable python tests for Native Windows
...
1) Multiplatorm support for devnull
2) Fixed a bug in the handling of cache files
3) Deleted run-bitcoin-cli as no longer needed
2020-03-24 18:05:30 +13:00
Homu
c3df71a8e9
Auto merge of #4386 - oxarbitrage:issue4385, r=daira
...
add check_node_log utility function
Closes https://github.com/zcash/zcash/issues/4385
2020-03-19 13:26:42 +00:00
Alfredo Garcia
2707e6ff6c
preserve test semantics
...
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2020-03-18 22:49:44 -03:00