Nathan Wilcox
5a027a4a6e
Do not use `-rpcwait` on all `zcash_rpc` invocations, only block when starting zcashd.
7 years ago
Nathan Wilcox
4e47698633
Reuse zcash_rpc.
7 years ago
Nathan Wilcox
453c74743c
Fix a variable name typo.
7 years ago
Nathan Wilcox
0cfc9d65fa
Enable set -u mode.
7 years ago
Jack Grigg
08dc7889d2
Remove additional sources of determinism from benchmark archive
The archive has also been moved from .tar.gz to .tar.xz for a
33% reduction in size.
Closes #2388 .
7 years ago
Jack Grigg
c66c731adf
Add a benchmark for calling ConnectBlock on a block with many inputs
Requires placing block-107134.tar.gz (containing the block, and a fake CoinsDB
containing its inputs) into the base directory of the repository. This can be
generated using qa/zcash/create_benchmark_archive.py (see the script for usage
details).
To facilitate generation of the fake CoinsDB, an additional field 'valueZat' has
been added to 'getrawtransaction' containing the integer number of zatoshis
instead of a decimal number of ZEC.
Closes #2355 .
7 years ago
Jay Graber
0a56135336
Poll on getblocktemplate result rather than use bare sleep to avoid race condition.
7 years ago
Daira Hopwood
80cbdbc749
Fix an error reporting bug due to BrokenPipeError and ConnectionResetError not existing in Python 2.
refs #2263
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
7 years ago
Jack Grigg
338ff45787
Use a larger -rpcclienttimeout for slow performance measurements
Closes #2238 .
7 years ago
Simon
99eb947a98
Add AMQP 1.0 support via Apache Qpid Proton C++ API 0.17.0
7 years ago
Wladimir J. van der Laan
f3e1770cfb
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.
9 years ago
Jack Grigg
47855b599d
Revert "Revert "rpc-tests: re-enable rpc-tests for Windows""
This reverts commit 7fd5d4e30e
.
We need to un-revert this before pulling in
https://github.com/bitcoin/bitcoin/pull/6616
7 years ago
Wladimir J. van der Laan
e93a3e1945
test: Avoid ConnectionResetErrors during RPC tests
This is necessary on FreeBSD and MacOSX, at least.
See https://github.com/bitcoin/bitcoin/pull/8834#issuecomment-250450213
8 years ago
Pieter Wuille
2edad86b2d
Fix interrupted HTTP RPC connection workaround for Python 3.5+
8 years ago
Jack Grigg
53c96bfa6c
Test boolean fallback in z_importkey
7 years ago
Wladimir J. van der Laan
7b41e725d0
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.
9 years ago
Wladimir J. van der Laan
7fd5d4e30e
Revert "rpc-tests: re-enable rpc-tests for Windows"
This reverts commit bd30c3dced21fca869a14c75081f15195762afe1.
Disable windows RPC tests for now. These should be re-enabled once a
suitable Wine version is used on Travis.
9 years ago
Wladimir J. van der Laan
cc14ac45f4
tests: GET requests cannot have request body, use POST in rest.py
Sending a request body with GET request is not valid in HTTP spec, and
not compatible with evhttpd.
9 years ago
Wladimir J. van der Laan
14dcc6ab96
qa: Remove -rpckeepalive tests from httpbasics
This option was a temporary workaround, and is no longer necessary
with the new web server.
10 years ago
Jack Grigg
bec25c91cb
Revert "Closes #1680 , temporary fix for rpc deadlock inherited from upstream."
This reverts commit f4404d7b5b
.
7 years ago
Jack Grigg
dec148f498
Fix prioritisetransaction RPC test
Part of #1884 .
7 years ago
Jack Grigg
b7e5b7d5ee
Simplify z_importkey by making rescan a string
Transparently handles older boolean values as well.
7 years ago
Jack Grigg
a31ba7a0cb
Usability improvements for z_importkey
- Add height parameter to z_importkey to reduce rescan range
- Change semantics of rescan parameter, so users can explicitly force a rescan
for existing keys.
Closes #2032
8 years ago
Jack Grigg
542a7a40f1
Add tests for getmempoolinfo
7 years ago
Pavel Janík
30c163d99d
Implement REST mempool API, add test and documentation.
9 years ago
Casey Rodarmor
df8f8095b6
Don't share objects between TestInstances
9 years ago
Wladimir J. van der Laan
7cc6648341
tests: Extend RPC proxy tests
Also test -noonion
9 years ago
Jack Grigg
25b8f796ff
Re-encode t-addrs in disablewallet.py with Zcash prefixes
7 years ago
Jack Grigg
5329495fe4
Adjust fundrawtransaction RPC test for Zcash
- Enable wallet encryption
- Correct block reward
7 years ago
Wladimir J. van der Laan
56215c77d8
Fix crash in validateaddress with -disablewallet
Fix a null pointer dereference in validateaddress with -disablewallet. Also add a regression testcase.
9 years ago
Jonas Schnelli
c2616abb3c
[QA] add testcases for parsing strings as values
9 years ago
Wladimir J. van der Laan
d101d7b8e6
univalue: Avoid unnecessary roundtrip through double for numbers
JSON makes no distinction between numbers and reals, and our code
doesn't need to do so either.
This removes VREAL, as well as its specific post-processing in
`UniValue::write`. Non-monetary amounts do not need to be forcibly
formatted with 8 decimals, so the extra roundtrip was unnecessary
(and potentially loses precision).
Zcash: cherry-picked from commit 7650449a6777710cf818d41862626164da0cd412
Left over from 2aee461930
9 years ago
zathras-crypto
a11c4bbd26
Exempt unspendable transaction outputs from dust checks
Since unspendable outputs can't be spent, there is no threshold at which it would be uneconomic to spend them.
This primarily targets transaction outputs with `OP_RETURN`.
---
Initially based on:
commit 9cf0ae26350033d43d5dd3c95054c0d1b1641eda
Author: zathras-crypto <zathrasc@gmail.com>
Date: Wed Mar 25 02:04:02 2015 -0700
Changes:
- cherry-picked on top of bitcoin:master
- added RPC test for fundrawtransaction
9 years ago
Jonas Schnelli
5bfd954fc6
[QA] remove rawtransactions.py from the extended test list
rawtransactions.py is already in the standard test list
9 years ago
Jonas Schnelli
897a370c39
[QA] fix possible reorg issue in rawtransaction.py/fundrawtransaction.py RPC test
- added missing mempool sync between block generations
9 years ago
Jonas Schnelli
81eb80d841
[REST] add JSON support for /rest/headers/
10 years ago
mruddy
81ae51c883
add tests for the decodescript rpc. add mention of the rpc regression tests to the testing seciton of the main readme.
9 years ago
Wladimir J. van der Laan
bf890b6518
test: Move reindex test to standard tests
This test finishes very quickly, so it should be part of the default set
of tests in rpc-tests.
9 years ago
Jonas Schnelli
788d8e6a6f
fundrawtransaction tests
9 years ago
Jonas Schnelli
2ab237a088
add RPC tests for setban & disconnectnode
9 years ago
Jonas Schnelli
e521939942
[RPC] extend setban to allow subnets
9 years ago
Jonas Schnelli
962ec4b5e4
[QA] add setban/listbanned/clearbanned tests
9 years ago
Stephen
6699b42518
Add paytxfee to getwalletinfo, warnings to getnetworkinfo
9 years ago
Simon
85c9ecb846
Part of #1969 . Update tests to avoid error 'absurdly high fee' from change in min fee calc.
7 years ago
Simon
ebe750a882
Part of #1969 . Changing min fee calculation also changes the dust threshold.
7 years ago
Jay Graber
8d2dac6e3f
Inc num of txs in test mempool
7 years ago
Jay Graber
cc64e2ccc8
Add rpc test for prioritisetransaction
8 years ago
Simon
238fec642d
Update test to check for updated error messages in AmountFromValue().
7 years ago
Simon
91270dcfbc
Update test to check for more joinsplit related fields in getrawtransaction
7 years ago
Jack Grigg
b8eb37757b
Require -experimentalmode for wallet encryption
7 years ago