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
mdr0id
e5e639ae22
Update RPCs to support cross platform paths and libs
2020-03-12 10:27:12 -07:00
Alfredo Garcia
1485c596e7
add stop_node argument to check_node_log, use it in shieldingcoinbase
2020-03-10 14:21:05 -03:00
Alfredo Garcia
461047ac99
move check_node_log framework test to a new file
2020-03-10 11:05:49 -03:00
Alfredo Garcia
aa89d3c342
add check_node_log utility function
2020-03-06 19:17:18 -03:00
Alfredo Garcia
70d5682e31
Merge branch 'master' into issue4004
2020-02-11 10:58:33 -03:00
Alfredo Garcia
ebd9d0c562
remove unused imports
2020-02-11 10:56:45 -03:00
mdr0id
fdac835b13
update comment regarding prior py2 exception
2020-02-09 12:38:01 -08:00
mdr0id
9592ded3cc
clean up conventions and whitespace
2020-02-09 08:44:23 -08:00
mdr0id
8f859cbf85
fix pyflakes errors
2020-02-09 08:18:00 -08:00
mdr0id
c7113bd6f1
Update json to simplejson to remove unicode and str issue from py2 to py3
2020-02-09 08:18:00 -08:00
mdr0id
3eb6512b78
cleanups and fixing odd casting
2020-02-09 08:18:00 -08:00
mdr0id
b2752948c0
fix url and port issue
2020-02-09 08:18:00 -08:00
mdr0id
08cfd935d6
clean up
2020-02-09 08:17:32 -08:00
mdr0id
4801c316fc
clean up
2020-02-09 08:17:32 -08:00
mdr0id
ff5a47acfa
clean up
2020-02-09 08:17:32 -08:00
mdr0id
2d4f4f0b13
remove debug lines from prior commits
2020-02-09 08:17:32 -08:00
mdr0id
51c020bc68
Use upstream encoding for encodeDecimal
2020-02-09 08:15:43 -08:00
mdr0id
af903084c7
clean up
2020-02-09 08:15:43 -08:00
mdr0id
7b81c00ee4
clean-up imports, keep string notation consistent, remove spacing
2020-02-09 08:15:43 -08:00
mdr0id
75c199ead4
correct update to python3
2020-02-09 08:15:43 -08:00
mdr0id
623f3eb9da
make import urlparse module consistent,httplib update to py3
2020-02-09 08:15:43 -08:00
mdr0id
59068ea071
fix except bug for undefined url
2020-02-09 08:15:43 -08:00
mdr0id
785c3abf05
Clean up code from upstream we dont use
2020-02-09 08:15:43 -08:00
mdr0id
6ed23daf6f
Use more meaningful assert_equal from our original codebase
2020-02-09 08:15:43 -08:00
mdr0id
80e4406ee1
update remaining encoding issues, add pyblake2
2020-02-09 08:15:43 -08:00
mdr0id
3f751205b1
update io module, fix py3 division, and string encoding
2020-02-09 08:15:43 -08:00
mdr0id
bc14f56398
Clean up code not needed from upstream
2020-02-09 08:15:43 -08:00
mdr0id
c92cac4776
update encoding, decoding, serialize funcs for py3
2020-02-09 08:15:43 -08:00
mdr0id
09fa601617
update to py3 encodings
2020-02-09 08:15:43 -08:00
mdr0id
843df2a31d
update to py3 conventions, clean up code to be upstream consistent
2020-02-09 08:15:43 -08:00
mdr0id
be0d6ea8c2
update to py3 conventions, update functions to be upstream consistent
2020-02-09 08:15:43 -08:00
mdr0id
f4dcf02062
update to py3 env path
2020-02-09 08:14:21 -08:00
mdr0id
04d218f49d
Add keyerror execption
2020-02-09 08:14:21 -08:00
mdr0id
c0d7fde366
clean up binascii call
2020-02-09 08:14:21 -08:00
mdr0id
45915145cf
update str cast to prevent address assert issues
2020-02-09 08:14:21 -08:00
mdr0id
82162e7d20
Update rpc-test/test_framework to Py3 convention,modules,encoding
2020-02-09 08:14:21 -08:00
mdr0id
bda88213a6
update test_framework modules
2020-02-09 08:09:31 -08:00
Jack Grigg
5199ecdf41
test: Update RPC test cache generation to handle new consensus rule
...
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2020-02-04 23:12:36 +00:00
Jack Grigg
03db5c8ca3
Tie sync_blocks in RPC tests to notifier thread
2019-12-18 15:06:54 -06:00
Alfredo Garcia
910ff448d6
remove SignatureHash from python rpc tests
2019-12-11 14:46:56 -03:00
Wladimir J. van der Laan
e427f70a8c
make proxy_test work on servers without ipv6
2019-11-27 10:38:14 -08:00
Homu
961c0d58ec
Auto merge of #4060 - str4d:remove-libsnark, r=daira
...
Remove libsnark
Closes #167 . Closes #416 . Closes #418 . Closes #437 .
Closes #521 . Closes #743 . Closes #750 . Closes #894 .
Closes #903 . Closes #1125 . Closes #1136 . Closes #1240 .
Closes #1264 . Closes #1516 . Closes #1517 . Closes #1651 .
Closes #2064 . Closes #2158 . Closes #3478 . Closes #3652 .
Closes #3744 .
2019-09-26 11:21:40 -07:00
Jack Grigg
9d8322a341
Enable RPC tests to wait on mempool notifications
2019-09-20 21:41:49 +01:00
Jack Grigg
982e924e98
tests: Clean up use of repr() in mininode
2019-09-16 12:23:46 +01:00
Jack Grigg
8669cb692d
test: Update RPC tests to use a minimum of Sapling
...
The p2p_nu_peer_management and rewind_index RPC tests still start from
Sprout, because they are explicitly (and only) testing network behaviour
across network upgrades.
The mempool_tx_input_limit test is removed because the flag has been
ignored since Sapling activation, and will be removed at some point in
the near future.
2019-08-22 17:26:54 +01:00
Jack Grigg
d7d4dd8a0f
test: Add hashFinalSaplingProxy to create_block
2019-08-22 15:44:18 +01:00
Jack Grigg
0097df5c7a
test: Add Sapling v4 transactions to mininode framework
2019-08-22 15:44:16 +01:00
Jack Grigg
3019c0be14
test: Require minimum of Sapling for all RPC tests
2019-08-22 15:42:54 +01:00
Eirik Ogilvie-Wigley
b54725fbed
Remove constant
...
Co-Authored-By: str4d <thestr4d@gmail.com>
2019-08-19 12:30:24 -06:00
Daira Hopwood
f58bc7b638
Add RPC test and test framework constants for Sapling->Blossom activation.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-08-16 20:19:18 +01:00
Jack Grigg
cfdf040332
test: Fix AuthServiceProxy closed conn detection
2019-08-16 20:19:18 +01:00
Daira Hopwood
bc909a7a7f
Replace http with https: in links to the MIT license.
...
Also change MIT/X11 to just MIT, since no distinction was intended.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-07-18 15:26:01 +01:00
Dimitris Apostolou
f57f76d789
Rename vjoinsplit to vJoinSplit
2019-06-16 19:13:49 +03:00
Eirik0
d2a584e35a
Refactor wait_and_assert_operationid_status to allow returning the result
2019-04-24 11:31:14 -06:00
Eirik0
81a45d6984
Add rpc to enable and disable Sprout to Sapling migration
2019-04-24 11:31:14 -06:00
Jack Grigg
3cb20f26a1
test: Make expected_utxos optional in get_coinbase_address()
2019-03-06 09:03:55 +13:00
Jack Grigg
b0f1d643aa
test: Fetch coinbase address from coinbase UTXOs
...
After upstream PR bitcoin/bitcoin#5994 , the first call to getnewaddress after
startup does not return the address being used by the miner.
2019-03-06 09:03:51 +13:00
Simon
43040e9384
Add support for "notfound" message to mininode.
2018-11-17 08:27:41 -08:00
Eirik Ogilvie-Wigley
fe393e8a2f
Add fail method to rpc test utils
2018-11-16 18:00:05 -07:00
Eirik Ogilvie-Wigley
882a4f577f
Fix potentially misleading test failures
2018-10-24 13:53:25 -06: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
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
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
syd
31436e4372
Add assert_raises_message to the python test framework.
2017-12-12 20:04:13 -05:00
Jack Grigg
c10c40779d
[Test] MiniNode: Implement Zcash coinbase
2017-10-05 15:18:53 +01:00