Kris Nuttycombe
4d223f9797
Merge remote-tracking branch 'upstream/master' into zip-207
2020-07-02 13:24:45 -06:00
Sean Bowe
14a09a5fd6
Remove unused imports from remove_sprout_shielding RPC test.
2020-07-02 11:09:22 -06:00
therealyingtong
f24e706079
Replace leadByte in SaplingNote with is_zip_212
2020-07-02 15:37:32 +08:00
Larry Ruane
5b7fed5bbf
self.sync_all(), not time.sleep(4)
2020-07-01 10:28:15 -06:00
Kris Nuttycombe
7dd1889944
Trivial copyright fix.
...
Co-authored-by: str4d <thestr4d@gmail.com>
2020-07-02 00:27:18 +08:00
therealyingtong
5e4d13b49d
Add RPC tests
...
Test that Sprout shielding is accepted before Canopy and rejected after Canopy activation
2020-07-02 00:27:14 +08:00
Rod Vagg
a106c15a19
Add joinSplitPubKey and joinSplitSig to RPC
...
These two properties are required to fully reconstruct a Zcash
transaction's binary form from the RPC data.
Co-authored-by: str4d <thestr4d@gmail.com>
2020-06-30 21:47:51 +10:00
Kris Nuttycombe
92cec200ee
Minor fixes for ZIP-207 review comments.
2020-06-29 16:13:08 -06: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
Taylor Hornby
75876f477b
Implement system for postponing dependency updates.
2020-06-24 18:14:47 -06:00
Larry Ruane
6335944784
add python test to reproduce bug 4301
2020-06-24 09:27:11 -06:00
Alfredo Garcia
1f06621e34
add myblockhash parameter to getrawtransaction
...
Co-Authored-By: kallewoof <kalle.alm@gmail.com>
2020-06-15 19:33:49 -03:00
Homu
552482a404
Auto merge of #3913 - str4d:smoke-tests, r=str4d
...
Automated smoke tests
Usage:
```
ZCASHD=./src/zcashd ZCASHCLI=./src/zcash-cli ./qa/zcash/smoke_tests.py --wallet=wallet.smoketest.dat "$HOME/.zcash"
```
Includes code cherry-picked from bitcoin/bitcoin#7751 .
2020-06-04 22:17:48 +00:00
Homu
4ffccda774
Auto merge of #4322 - oxarbitrage:issue3740, r=str4d
...
Add -debuglogfile option
Cherry-picked from https://github.com/bitcoin/bitcoin/pull/11781 .
Closes https://github.com/zcash/zcash/issues/3740 .
2020-06-04 00:40:45 +00:00
Homu
e9a6d7926b
Auto merge of #4282 - oxarbitrage:issue2375, r=daira
...
Add a flag to get amount results as integer
Closes https://github.com/zcash/zcash/issues/2375
2020-06-03 11:26:00 +00:00
Daira Hopwood
270a724c87
Remove unused import in qa/rpc-tests/listtransactions.py
...
Co-authored-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
2020-06-03 12:25:31 +01:00
Alfredo Garcia
93afebeef4
add new parameters to rpc client and fix some bugs
2020-05-30 12:18:43 -03:00
Alfredo Garcia
e7c829aa0e
update docs
2020-05-30 10:34:03 -03:00
Alfredo Garcia
76cb4e8d04
remove not needed comments from wallet.py
2020-05-29 11:24:39 -03:00
Daira Hopwood
1527e5b3ca
Missing NU4->Canopy renames.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-05-29 10:02:50 +01:00
Daira Hopwood
22b8574d9e
Rename golden/nu4.tar.gz to canopy.tar.gz.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2020-05-29 01:30:30 +01:00
Alfredo Garcia
7c84f4e98a
fix test cases
2020-05-28 10:58:04 -03:00
Anthony Towns
83087be393
test: Add tests for `-debuglogfile` with subdirs
2020-05-28 10:58:04 -03:00
Wladimir J. van der Laan
4de0ac3351
test: Add test for `-debuglogfile`
2020-05-28 10:58:04 -03: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
Jack Grigg
5a577c7630
qa: Add --automate flag to smoke tests
2020-05-28 23:04:58 +12:00
Jack Grigg
4498eb26db
qa: Remove unused timeout configuration from wait_for_balance
2020-05-28 23:04:58 +12:00
Jack Grigg
c2144f7af7
qa: Add --use-faucet flag to smoke tests
2020-05-28 23:04:58 +12:00
mdr0id
a63c1d6279
Add helpers for tapping and donating to the testnet faucet
2020-05-28 19:10:32 +12:00
Eirik Ogilvie-Wigley
b21fcf37cb
Various improvements
...
- Print time since start for each operation
- Print traceback for any raised exceptions
- Improve messages to user
- Warning cleanups
2020-05-28 19:01:52 +12:00
Eirik Ogilvie-Wigley
aa4b98a7c3
Resolve decimal vs float issues
2020-05-28 18:59:20 +12:00
Homu
9bf8443c16
Auto merge of #4504 - str4d:disconnectblock-fixes, r=str4d
...
Use the cached consensusBranchId in DisconnectBlock
If a node is started with a set of network upgrades that don't match the
serialized chain (such as when we implement NU rollbacks on testnet),
RewindBlockIndex will disconnect each block in the chain until it
reaches the most recent block that agrees with the node's set of network
upgrades. However, the blocks themselves should be disconnected using
the consensus branch ID that they were connected with, which is
persisted alongside the chain and reconstructed in LoadBlockIndex.
2020-05-28 02:51:34 +00:00
Jack Grigg
a2db35137b
qa: Improve reliability of smoke test cleanup
2020-05-28 13:15:55 +12:00
Jack Grigg
a2ba414d69
qa: Improve reliability of smoke tests
2020-05-28 13:15:55 +12:00
Jack Grigg
0261ccbbe8
qa: Don't allow smoke tests with mainnet wallet.dat
2020-05-28 13:15:55 +12:00
Jack Grigg
a6ff0a0794
qa: Use slick-bitcoinrpc for smoke tests
2020-05-28 13:15:55 +12:00
Jack Grigg
eeecb3bf8c
qa: Transaction chain smoke test
2020-05-28 13:15:55 +12:00
Jack Grigg
01757cff23
qa: Simple smoke tests
2020-05-28 13:15:55 +12:00
Jack Grigg
6d1563d7a3
qa: Run Zcash node for smoke tests
2020-05-28 13:15:55 +12:00
Jack Grigg
6470237c09
qa: Smoke test driver
2020-05-28 13:15:55 +12:00
Homu
4907a31302
Auto merge of #4242 - oxarbitrage:issue3726, r=str4d
...
Add estimatedheight to rpc getblockchaininfo response
Fixes https://github.com/zcash/zcash/issues/3726
Ported from https://github.com/zcash/zcash/pull/3727 with comments addressed.
2020-05-28 00:49:49 +00:00
therealyingtong
06ddf659a7
Add RPC tests for post-Heartwood rollback
2020-05-28 09:54:42 +12:00
Alfredo Garcia
d42e0a433c
remove additional not needed casts from py tests
2020-05-18 18:09:07 -03:00
Alfredo Garcia
26e4889f87
Fix casting in listtransactions.py
2020-05-18 16:53:01 -03:00
Alfredo Garcia
24d3516e35
Fix casting in wallet.py
...
Co-Authored-By: Daira Hopwood <daira@jacaranda.org>
2020-05-18 16:53:01 -03:00
Alfredo Garcia
25bccb4814
replace with AssertionError assert_equal in receivedby.py
...
Co-Authored-By: Daira Hopwood <daira@jacaranda.org>
2020-05-18 16:53:01 -03:00
Alfredo Garcia
25f48c21dd
add amountZat field to z_listreceivedbyaddress
2020-05-18 16:53:01 -03:00
Alfredo Garcia
76e7f21d4a
add amountZat field to listunspent
2020-05-18 16:52:04 -03:00
Alfredo Garcia
9a55c8b238
add amountZat field to listtransactions, gettransaction and listsinceblock
2020-05-18 16:51:24 -03:00
Alfredo Garcia
2ec9ac3c81
add amountZat field to listreceivedbyaddress and listreceivedbyaccount
2020-05-18 16:49:39 -03:00
Alfredo Garcia
306270911e
add boolean inZat to z_getbalance
2020-05-18 16:47:17 -03:00
Alfredo Garcia
50372cab62
add boolean inZat to getbalance
2020-05-18 16:47:17 -03:00
Alfredo Garcia
d2c26b33e0
add boolean inZat to getreceivedbyaccount
2020-05-18 16:47:17 -03:00
Alfredo Garcia
4b61aede28
add bool argument to get balance in satoshis to rpc getreceivedbyaddress
2020-05-18 16:47:17 -03:00
Kris Nuttycombe
6a0d464f41
Merge remote-tracking branch 'upstream/master' into hotfix-v2.1.2-2-golden
2020-05-18 11:22:22 -06:00
Kris Nuttycombe
04d82fa30f
Remove unused imports.
2020-05-18 10:38:37 -06:00
Taylor Hornby
e0ab57ee36
Add univalue to updatecheck.py and update univalue, removing calls to deprecated methods
2020-05-14 12:42:19 -06:00
Sean Bowe
43ffa3bf43
Add NU4 activation to golden test.
2020-05-14 12:24:56 -06: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
a2898a84f4
Fully remove the regtest tree from restored nodes.
2020-05-08 10:36:04 -06:00
Kris Nuttycombe
76a88dab52
Update golden test for heartwood network upgrade.
2020-05-07 19:12:24 -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
45dab9adc0
Revert "Update qa/rpc-tests/sapling_rewind_check.py"
...
This reverts commit e09f052570
.
2020-05-04 16:57:48 -06:00
Kris Nuttycombe
ae86386648
Update test description and clarify internal comments.
2020-05-04 10:55:32 -06:00
Kris Nuttycombe
6742ba021f
Add Zcash copyright to sapling_rewind_check.py
2020-05-02 18:33:58 -06:00
Kris Nuttycombe
e09f052570
Update qa/rpc-tests/sapling_rewind_check.py
...
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2020-05-02 18:33:01 -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
c2e3454e0a
Clean up imports in sapling_rewind_check.py
...
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2020-05-02 18:30:09 -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
Alfredo Garcia
4c40f9f514
implement z_getnotescount api call
2020-04-25 11:17:20 -03:00
Homu
0ad52ca9b1
Auto merge of #4249 - oxarbitrage:issue_3724, r=str4d
...
Add confirmations, blockheight, blockindex and blocktime to z_listreceivedbyaddress
Fixes https://github.com/zcash/zcash/issues/3724
1- There was a PR to add confirmations to this call at https://github.com/zcash/zcash/pull/3836
I ported the commit from there and fixed test case by incrementing the confirmations as suggested at: https://github.com/zcash/zcash/pull/3836#issuecomment-499927807
2- Then added `blockheight`, `blockindex` and `blocktime`. To avoid some duplicated code (Sprout/Sapling) created a structure `trxblock`.
3- Original issue requests only time and blockindex however i think height is also important; if `blockindex` is the position of the transaction in the block then you are going to need also `height` to find it.
2020-04-25 05:28:16 +00:00
Kris Nuttycombe
5a8f6f8058
Merge remote-tracking branch 'upstream/master' into bug/4119-rewind_detection
2020-04-22 14:58:11 -06:00
Kris Nuttycombe
7629560a26
Trivial comment.
2020-04-15 16:09:19 -06:00
Kris Nuttycombe
a4e80ae1ab
Restart node in a chain split state to allow the test to complete.
2020-04-15 15:58:48 -06:00
Kris Nuttycombe
5030e73afc
Make the test reproduce the actual off-by-one error in rewind length.
2020-04-15 14:19:05 -06:00
Alfredo Garcia
a1c37b7b79
Fix typo
...
Co-Authored-By: Dimitris Apostolou <dimitris.apostolou@icloud.com>
2020-04-15 15:46:49 -03:00
Dimitris Apostolou
5f2e015aa3
Fix typos
2020-04-15 13:24:00 +03:00
Kris Nuttycombe
59d2a6458d
Narrow down the test case.
2020-04-14 17:47:29 -06:00
Alfredo Garcia
8a40b8518a
fix wallet nullifiers test
2020-04-14 17:11:20 -03:00
Homu
084303d8c2
Auto merge of #4264 - NikVolf:mmr, r=str4d
...
[ZIP 221] FlyClient - Consensus-Layer Changes
Implements https://zips.z.cash/zip-0221
2020-04-14 20:09:34 +00:00
Kris Nuttycombe
a4e8945cfa
Check network reunification.
2020-04-14 13:52:50 -06:00
Kris Nuttycombe
f432ceff31
Add a test reproducing the off-by-one error.
2020-04-14 13:37:40 -06:00
Jack Grigg
e85fac5167
test: Ignore timestamps in addressindex checks
...
The mempool timestamps are local to each node, and if the testing
machine is under load, they can potentially differ by a second.
Closes zcash/zcash#4439 .
Co-authored-by: Ying Tong <yingtong@ethereum.org>
2020-04-14 20:56:37 +12:00
Jack Grigg
21d8e5be15
Comment clarifications and fixes
2020-04-11 11:39:00 +12:00
Jack Grigg
9cfd574eac
test: Add an extra assertion to feature_zip221.py
2020-04-10 19:47:45 +12:00
Homu
3033b8a0ec
Auto merge of #4402 - oxarbitrage:issue4326, r=str4d
...
Add -lightwalletd experimental option
Similar to `-insightexplorer` but loading less indexes.
After testing and code review this should be able to close https://github.com/zcash/zcash/issues/4326
2020-04-10 03:42:54 +00:00
Homu
780554e53a
Auto merge of #4426 - oxarbitrage:issue4372, r=str4d
...
Return address info in z_importviewingkey
Closes https://github.com/zcash/zcash/issues/4372
2020-04-10 00:20:40 +00:00
Jack Grigg
2ad84e8564
Comment tweaks and cleanups
...
Co-Authored-By: Daira Hopwood <daira@jacaranda.org>
2020-04-10 09:53:30 +12:00
Alfredo Garcia
a43f5daff8
add -lightwalletd experimental option
2020-04-09 11:05:21 -03:00
Jack Grigg
eca5009825
test: Build Rust tests as part of qa/zcash/full_test_suite.py
...
The previous version of full_test_suite.py directly called the test
binary, which was being compiled at the same time as the static library.
However, by passing the --tests argument to cargo, rustc was ignoring
several important release-profile configurations, and was also
attempting to link the test binary, which was breaking cross-compilation
builds.
This commit alters src/Makefile.am to only build the static library, and
leaves test compilation to the test runner itself. This ensures that the
tests are only compiled for native builds, when the tests will be run on
the same platform.
2020-04-08 18:17:19 +12:00
Jack Grigg
cb57c17eb6
test: Verify ZIP 221 logic against reference implementation
2020-04-08 08:49:01 +12:00
Alfredo Garcia
de5b69f160
add expected address check to tests
2020-04-07 10:39:33 -03:00
Alfredo Garcia
0a6ab8a5ab
return address info in z_importviewingkey
2020-04-07 08:38:12 -03:00
Homu
1be7250db9
Auto merge of #4411 - str4d:2074-rpc-test-harness-1, r=mdr0id
...
Backport RPC test harness PRs
Cherry-picked from the following upstream PRs:
- https://github.com/bitcoin/bitcoin/pull/6548
- https://github.com/bitcoin/bitcoin/pull/6804
- Just the coverage backend, not the flag to enable it for all RPC tests.
- https://github.com/bitcoin/bitcoin/pull/7744
- https://github.com/bitcoin/bitcoin/pull/9832
- Excludes `wallet-hd.py` change (missing bitcoin/bitcoin#8309).
Part of #2074 .
2020-04-03 03:14:04 +00:00
Homu
b5f179d207
Auto merge of #4370 - str4d:3060-sapling-viewing-keys, r=str4d
...
Add support for Sapling full viewing keys
This PR adds Sapling support to `z_exportviewingkey` and `z_importviewingkey`, and stores imported Sapling viewing keys in the wallet.
Closes #3060 .
2020-03-28 02:41:26 +00: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
77219bdc6c
remove unused import
2020-03-19 08:46:33 -03:00
Alfredo Garcia
2707e6ff6c
preserve test semantics
...
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2020-03-18 22:49:44 -03:00
Taylor Hornby
acdad52602
Update updatecheck.py with the new Rust dependencies and improve the error message in case the untracked dependency list becomes out of date.
2020-03-17 14:05:50 -06:00
Homu
a125f3f5f8
Auto merge of #4403 - ebfull:rust-tests, r=str4d
...
Additional librustzcash integration
This adds librustzcash tests to the full test suite, and brings in the release profile configurations that are currently present in the librustzcash workspace on the other repository. It's very important that we build librustzcash with panic=abort because otherwise the unwinding panics across FFI boundaries could cause undefined behavior.
2020-03-17 07:50:48 +00:00
Homu
52f4794055
Auto merge of #4395 - defuse:fix-updatecheck, r=daira
...
Fix bug in updatecheck.py and add utfcpp to its dependency list
2020-03-16 19:14:48 +00:00
Sean Bowe
81a633c9c3
Simplification for MacOS in rust-test.
2020-03-14 11:06:13 -06:00
Sean Bowe
531c7c2881
Minor typo fixes.
2020-03-14 11:04:39 -06:00
Sean Bowe
7767f8e9e0
Add librustzcash tests to the full test suite.
2020-03-14 10:58:09 -06:00
mdr0id
e5e639ae22
Update RPCs to support cross platform paths and libs
2020-03-12 10:27:12 -07:00
Alfredo Garcia
b7c8ee64d7
minor cleanup style, var names
2020-03-11 13:43:47 -03:00
Taylor Hornby
11470a3107
Fix typo in updatecheck.py
2020-03-11 10:07:13 -06:00
Taylor Hornby
d582270abb
Fix bug in updatecheck.py and add utfcpp to its dependency list
2020-03-11 09:11:28 -06: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
1aae365438
use check_node_log in turnstile.py
2020-03-10 11:06:56 -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
9f71fbecca
remove space after new line
2020-03-07 09:26:25 -03:00
Alfredo Garcia
aa89d3c342
add check_node_log utility function
2020-03-06 19:17:18 -03:00
Homu
35bff6ac7c
Auto merge of #4256 - str4d:zip-213-shielded-coinbase, r=daira
...
[NU3 Heartwood] Shielded Coinbase
Implements [ZIP 213](https://github.com/zcash/zips/pull/217 ).
2020-03-06 10:19:13 +00:00
Jack Grigg
6fd1b7c2e4
test: Check that shielded coinbase can be spent to a t-address
2020-03-06 13:10:39 +13:00
Jack Grigg
675a9b5fd3
test: RPC test for shielded coinbase
2020-03-06 10:41:27 +13:00
Homu
6c00a8ccf9
Auto merge of #4280 - oxarbitrage:issue2197, r=daira
...
Allow negative heights in RPC calls
For issue https://github.com/zcash/zcash/issues/2197
Currently adding the feature to `getblock` and `getblockhash`. There is another candidate: `getblocksubsidy` however i want to have some review about these 2 first before repeating what could be a bad approach.
2020-03-05 16:36:32 +00:00
Jack Grigg
a62405f44f
Store imported Sapling ExtFVKs in wallet database
2020-02-21 01:32:15 +00:00
Jack Grigg
1bcbe4e21d
Add in-memory Sapling ExtFVK support to z_importviewingkey
2020-02-21 01:30:02 +00:00
Homu
27c04c8f9c
Auto merge of #4146 - str4d:z_viewtransaction, r=str4d
...
z_viewtransaction
This RPC method returns all decryptable information for any transaction in the wallet.
Several values are conditionally included in the output for convenience:
- `recovered`: True if an output is not for a Sapling address in the wallet.
- `memoStr`: The text form of an output's memo, if it is valid UTF-8.
- Values are provided both in decimal currency units, and integer zatoshis.
2020-02-19 20:52:47 +00:00
Jack Grigg
ef5fb6a93c
test: Fix pyflakes warnings
2020-02-13 20:04:33 +00:00
Jack Grigg
0d5d329312
test: Hard-code hex memo in wallet_listreceived for Python3 compatibility
2020-02-13 20:04:33 +00: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
1ce2e86612
Update #! env for python3
2020-02-10 13:34:29 -08:00
mdr0id
7300db81ed
Updating remaining python3 conventions
2020-02-10 13:15:26 -08:00
mdr0id
4cb368a8d9
Update remaining Python3 conventions
2020-02-10 12:46:41 -08:00
mdr0id
826135d5ed
Fix remaining python3 conventions
2020-02-10 12:38:46 -08:00
mdr0id
fdac835b13
update comment regarding prior py2 exception
2020-02-09 12:38:01 -08:00
mdr0id
5ac9cb85f3
fix string pattern issue on byte object
2020-02-09 09:07:42 -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
93c625397f
Update py3 division
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
44834ed01c
Clean up import calls
2020-02-09 08:17:32 -08:00
mdr0id
3ae42f1e75
Fix decimal 0 issues
2020-02-09 08:17:32 -08:00
mdr0id
0b1a644d54
remove u encoding
2020-02-09 08:17:32 -08:00
mdr0id
f26269c512
clean up to minimize diff
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
89307b131a
update type for decimal 0
2020-02-09 08:15:43 -08:00
mdr0id
8240f73c68
clean up initiliaze statements from imports
2020-02-09 08:15:43 -08:00
mdr0id
4a6aac2c5c
fix initialize statements for imports
2020-02-09 08:15:43 -08:00
mdr0id
198b70aa09
fix type issue
2020-02-09 08:15:43 -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
Marshall Gaucher
5ae91f2dcb
Update qa/rpc-tests/addressindex.py
...
Co-Authored-By: Daira Hopwood <daira@jacaranda.org>
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
a9aa622359
Remove semi colons
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
99e8292538
Update to py3, ISSUE with encoding in create_block
2020-02-09 08:15:43 -08:00
mdr0id
57ec715d4c
Update to py3, ISSUE with encoding in create_block
2020-02-09 08:15:43 -08:00
mdr0id
344ea4433b
Update to py3, ISSUE with encoding
2020-02-09 08:15:43 -08:00
mdr0id
2c8b85f612
Update to py3, ISSUE with encoding
2020-02-09 08:15:43 -08:00
mdr0id
c36414896e
Update io modules for py3, ISSUE with create_transaction function
2020-02-09 08:15:43 -08:00
mdr0id
7648ebf57e
update to py3 conventions, BUG with last assert_equal
2020-02-09 08:15:43 -08:00
mdr0id
4c887d528b
Update type to be decimal
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
4403515487
update to py3 conventions, preserve ipv6 patch
2020-02-09 08:14:21 -08:00
mdr0id
1e71f89ffd
update to py3 conventions, update cmp to be py3 compatible, update map to return list for py3
2020-02-09 08:14:21 -08:00
mdr0id
c3de8a7da5
update to py3 convention, update execfile to py3 call
2020-02-09 08:14:21 -08:00
mdr0id
f09e57395f
update to py3 conventions, update range to return list for py3
2020-02-09 08:14:21 -08:00
mdr0id
64d767314a
Update to py3 conventions, update filter to return list
2020-02-09 08:14:21 -08:00
mdr0id
4fb6d38c38
Update to py3 conventions, update decimal calls to be consistent
2020-02-09 08:14:21 -08:00
mdr0id
6644c70c64
Update py2 modules to py3, update encoding to be py3 compatible
2020-02-09 08:14:21 -08:00
mdr0id
65a02f0984
Standard py2 to py3 updates
2020-02-09 08:14:21 -08:00
mdr0id
e241df647f
Update cmp to py3 functions, update map return to list for py3
2020-02-09 08:14:21 -08:00
mdr0id
d093e45db4
Update py2 env path, remove py2 assert, update http module and assert encoding
2020-02-09 08:14:21 -08:00
mdr0id
32d0583c92
Update py2 env path, remove py2 assert, update filter to return list for py3
2020-02-09 08:14:21 -08:00
mdr0id
efc5455d91
Update py2 env path, remove py2 assert
2020-02-09 08:14:21 -08:00
mdr0id
10b25c2b53
Update py2 env path, remove py2 assert
2020-02-09 08:14:21 -08:00
mdr0id
78e6f25820
Update py2 conventions to py3, update Decimal calls
2020-02-09 08:14:21 -08:00
mdr0id
a7381d24ee
Update py2 conventions to py3, remove py2 env and assert
2020-02-09 08:14:21 -08:00
mdr0id
cb81b81576
Update py3 env path, remove py2 assert
2020-02-09 08:14:21 -08:00
mdr0id
e017e5c93f
Update hexlify for encoding, update to py3 io module
2020-02-09 08:14:21 -08:00
mdr0id
79484ef854
Update python3 env path, remove python 2.7 assert
2020-02-09 08:14:21 -08:00
mdr0id
0123af354b
Update ignored testScriptsExt to Python3
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
mdr0id
3dde472c96
update /usr/bin/env; fix print conventions
2020-02-09 08:09:31 -08:00
Homu
e93586a0c4
Auto merge of #4331 - zcash:hotfix-v2.1.1-1, r=ebfull
...
Hotfix v2.1.1-1
The commits in this PR have been reviewed internally by our team.
2020-02-07 04:50:43 +00: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
Homu
ca55eb4794
Auto merge of #3870 - defuse:update-check-script, r=str4d
...
Add Python script for checking if dependencies have updates.
2020-01-30 18:27:56 +00:00
Taylor Hornby
1ecf2bae48
Make updatecheck.py compatible with python2
2020-01-30 11:11:37 -07:00
Jack Grigg
877707798c
test: Check z_viewtransaction output in wallet_listreceived RPC test
2020-01-29 16:05:44 +00:00
Taylor Hornby
5274f322b6
Cache releases to reduce network usage and improve performance
2020-01-28 14:53:36 -07:00
Taylor Hornby
992de545f9
Wrap long lines
2020-01-28 14:45:13 -07:00
Alfredo Garcia
0f5ef52d2e
add estimatedheight to getblockchaininfo
...
Co-authored-by: Aditya Kulkarni <adityapk@gmail.com>
2020-01-25 13:24:18 -03:00
Alfredo Garcia
76a43b6790
Return address and type of imported key in z_importkey
...
Co-authored-by: Dagur Valberg Johannsson <dagurval@pvv.ntnu.no>
2020-01-22 14:41:02 -03:00
Alfredo Garcia
3fb8af512c
change regex
2020-01-21 21:24:21 -03:00
Alfredo Garcia
7cb45243fe
change convention
2020-01-20 12:23:52 -03:00
Alfredo Garcia
fce6000f76
allow negative index to getblockhash
2019-12-31 09:35:37 -03:00
Alfredo Garcia
3ac6dd5f5d
add negative height to getblock
2019-12-31 09:16:29 -03:00
Taylor Hornby
d7108d36b1
Update list of dependencies to check
2019-12-19 14:33:51 -07:00
Taylor Hornby
49f94dbe3d
Add GitHub API credential
2019-12-19 14:33:41 -07:00
Taylor Hornby
d83e8a6a44
Add Python script for checking if dependencies have updates.
2019-12-19 13:58:36 -07:00
Homu
0a31c163c6
Auto merge of #4252 - str4d:wallet-interface-refactor, r=str4d
...
Wallet interface refactor
This refactors the logic introduced in #4144 to improve the separation between the node and wallet. The notifier thread now lives next in `src/validationinterface.cpp` directly next to the existing `CMainSignals` node-wallet interface.
Part of #3877 .
2019-12-18 22:48:26 +00:00
Jack Grigg
f93db1219b
test: Update wallet RPC test with change to "absurdly high fee" limit
2019-12-18 15:40:50 -06:00
Jack Grigg
e77e8660e3
test: Add missing sync_all point
...
This file was renamed in master, so it was missed in the first commit.
2019-12-18 15:06:54 -06:00
Jack Grigg
4f6b477fb6
test: Reverse hashtx and hashblock ordering at start of ZMQ RPC test
...
The "hashtx" message was previously triggered synchronously inside
ConnectBlock, while the "hashblock" message is triggered in ConnectTip
immediately after ConnectBlock returns. Thus ZMQ would see a "hashtx"
for every relevant transaction, followed by a "hashblock".
Now, "hashtx" is triggered asynchronously once the cs_main lock is
dropped, which does not occur until after ConnectTip returns. Thus ZMQ
will see a "hashblock" immediately after the block is connected, and
then a "hashtx" for relevant transactions at some point afterwards.
2019-12-18 15:06:54 -06:00
Jack Grigg
d57af95802
test: Remove genesis-block Sapling activation from shorter_block_times
...
Sapling can't be activated in the genesis block without recomputing it,
and we already activate Sapling by default in block 1, which is fine for
this RPC test.
2019-12-18 15:06:54 -06:00
Jack Grigg
f7eaf921bc
test: Add sync_all points after block generation to RPC tests
...
Previously we only required synchronization points where blocks were
sent between nodes; now we need them between action and query operations
on the same node, because wallet notification of mined blocks no longer
occurs in real-time.
2019-12-18 15:06:54 -06:00
Jack Grigg
03db5c8ca3
Tie sync_blocks in RPC tests to notifier thread
2019-12-18 15:06:54 -06:00
MarcoFalke
6d2629dd64
[doc] Fix markdown
2019-12-17 12:18:50 -06:00
Alfredo Garcia
910ff448d6
remove SignatureHash from python rpc tests
2019-12-11 14:46:56 -03:00
Dimitris Apostolou
f0003239f8
Change "protect" terminology to "shield"
2019-12-04 23:17:06 +02:00
Homu
868c63f92d
Auto merge of #2390 - str4d:2132-mapargs-prep, r=str4d
...
Misc upstream PRs
Cherry-picked from the following upstream PRs:
- https://github.com/bitcoin/bitcoin/pull/6077
- Second commit only (first was already applied to 0.11.X and then reverted)
- https://github.com/bitcoin/bitcoin/pull/6284
- https://github.com/bitcoin/bitcoin/pull/6489
- https://github.com/bitcoin/bitcoin/pull/6235
- https://github.com/bitcoin/bitcoin/pull/6905
- https://github.com/bitcoin/bitcoin/pull/6780
- Excluding second commit (QT) and third commit (requires https://github.com/bitcoin/bitcoin/pull/6993 )
- https://github.com/bitcoin/bitcoin/pull/6961
- Excluding QT parts, and a small `src/policy/policy.cpp` change which depends on a bunch of other PRs, which we'll have to remember to come back to.
- https://github.com/bitcoin/bitcoin/pull/7044
- https://github.com/bitcoin/bitcoin/pull/8856
- https://github.com/bitcoin/bitcoin/pull/9002
Part of #2074 and #2132 .
2019-12-04 19:20:44 +00:00
Jack Grigg
1088866455
pyflakes fixes
2019-12-04 19:16:20 +00:00
Gregory Sanders
f4d9e06a90
Added additional config option for multiple RPC users.
2019-12-04 17:18:43 +00:00
Homu
9a06ea5ab8
Auto merge of #4221 - rex4539:typo, r=mdr0id
...
Fix typo
2019-12-03 22:12:39 +00:00
Homu
2383d1b1de
Auto merge of #4211 - dagurval:rm-mempooltxinputlimit, r=mdr0id
...
Remove option mempooltxinputlimit
This option is no longer used after Overwinter. Fixes #4209 .
2019-12-03 20:07:20 +00:00
Alfredo Garcia
7e946d7ccb
add blockheight, blockindex and blocktime to z_listreceivedbyaddress
2019-12-03 11:24:30 -03:00
Homu
5e26d48a39
Auto merge of #4226 - str4d:2074-wallet-1, r=mdr0id
...
Bitcoin 0.12 wallet PRs 1
Cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#6057
- bitcoin/bitcoin#6415
Part of #2074 . Closes #3700 .
2019-12-03 06:53:27 +00:00
Homu
cc807987c9
Auto merge of #4244 - charlieok:add_check_depends_build_step, r=mdr0id
...
Add check-depends step to STAGE_COMMANDS list
Added to the beginning of the list of stage commands
2019-12-03 03:11:32 +00:00
Marshall Gaucher
017682f993
Update to stop random race error from assert
2019-12-02 17:39:00 -08:00
Marshall Gaucher
acea0f7715
Update z_sendmany calls passing int 0, instead of Decimal('0')
2019-12-02 15:37:10 -08:00
Marshall Gaucher
62f5bdfbdc
Update `import *` to unblock pyflakes from failing
2019-12-02 11:38:33 -08:00
Alfredo Garcia
de47393848
fix rpc testcase
2019-11-29 18:27:41 -03:00
Charlie O'Keefe
d4f70e5536
Add check-depends step to STAGE_COMMANDS list
2019-11-27 14:12:18 -08:00
Wladimir J. van der Laan
e427f70a8c
make proxy_test work on servers without ipv6
2019-11-27 10:38:14 -08:00
Dagur Valberg Johannsson
fe1ff82a7d
Remove option mempooltxinputlimit
...
This option is no longer used after Overwinter. Fixes #4209 .
2019-11-19 10:35:39 +01:00
Matt Corallo
60dc0a9e8e
Implement watchonly support in fundrawtransaction
...
Some code and test cases stolen from
Bryan Bishop <bryan@ledgerx.com> (pull #5524 ).
2019-11-14 15:46:07 +00:00
Matt Corallo
a0d211537c
Add p2sh option to importaddress to import redeemScripts
2019-11-14 14:48:21 +00:00
Dimitris Apostolou
40609b95ff
Fix typo
2019-11-12 12:51:45 +02:00