Johnson Lau
fef7b46841
test segwit uncompressed key fixes
...
Github-Pull: #8499
Rebased-From: 9260085377
2016-10-17 14:16:08 +02:00
Johnson Lau
b4b85279a9
Make test framework produce lowS signatures
...
Github-Pull: #8499
Rebased-From: 9f0397aff7
2016-10-17 14:10:58 +02:00
Suhas Daftuar
611cc5096e
[qa] Fix bug in mininode witness deserialization
...
Also improve tx printing
Github-Pull: #8393
Rebased-From: f5b9b8f437
2016-10-13 20:09:31 +02:00
Suhas Daftuar
61e282b62d
[qa] Add support for compactblocks v2 to mininode
...
Github-Pull: #8393
Rebased-From: 422fac649f
2016-10-13 20:09:31 +02:00
Wladimir J. van der Laan
cbc3fe59c4
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.
Github-Pull: #8840
Rebased-From: 30930e847e
2016-10-03 11:54:29 +02:00
MarcoFalke
0bee740845
[qa] util: Move wait_bitcoinds() into stop_nodes()
...
Github-Pull: #8860
Rebased-From: fa7c35c4ec
2016-10-03 11:31:36 +02:00
MarcoFalke
1f60d45504
[qa] mininode: Only allow named args in wait_until
...
Github-Pull: #8857
Rebased-From: fa666094cf
2016-10-03 10:59:49 +02:00
Suhas Daftuar
624a007f47
[qa] Fix race condition in p2p-compactblocks test
...
Also fix a bug in the sync_with_ping() helper function
Github-Pull: #8854
Rebased-From: b5fd666984
2016-10-03 10:57:40 +02:00
Wladimir J. van der Laan
31ab2f862a
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
Github-Pull: #8839
Rebased-From: 1d28faf9e9
2016-10-03 10:57:04 +02:00
MarcoFalke
1dd1783873
[qa] blockstore: Switch to dumb dbm
...
Github-Pull: #8834
Rebased-From: fa9cd25ed0
2016-10-03 10:56:12 +02:00
Suhas Daftuar
f6be478b0a
Add support for compactblocks to mininode
...
Github-Pull: #8418
Rebased-From: 9a22a6c089
2016-09-26 16:47:09 +02:00
Suhas Daftuar
4295a7aea5
Tests: refactor compact size serialization in mininode
...
Github-Pull: #8418
Rebased-From: a8689fdf8e
2016-09-26 16:47:06 +02:00
Pieter Wuille
ff893aa557
Implement SipHash in Python
...
Github-Pull: #8418
Rebased-From: 9c8593d2b4
2016-09-26 16:46:56 +02:00
isle2983
a60d7cc97d
[copyright] Add missing copyright headers
...
Github-Pull: #8676
Rebased-From: 783e930e68
2016-09-21 02:43:47 +00:00
whythat
e111904a76
[qa]: add parsing for '<host>:<port>' argument form to rpc_url()
...
Github-Pull: #8400
Rebased-From: 0ff4375c93
2016-09-21 02:43:47 +00:00
Johnson Lau
6b07362b37
Fix SIGHASH_SINGLE bug in test_framework SignatureHash
...
The value for "other" inputs should be -1 (0xffffffffffffffff) instead of 0
Github-Pull: #8667
Rebased-From: 2f2548d5e0
2016-09-21 02:43:47 +00:00
whythat
63462c2b4b
[qa] remove root test directory for RPC tests
...
Github-Pull: #8652
Rebased-From: 438e94dc33
c62cc4ec75
2016-09-16 11:28:48 +02:00
Wladimir J. van der Laan
4324bd237c
Merge #8311 : Rename CTxinWitness -> CTxInWitness
...
36ae37a
Rename CTxinWitness -> CTxInWitness (Bob McElrath)
2016-07-14 08:18:38 +02:00
Wladimir J. van der Laan
ff46dd4a34
Merge #7540 : Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFY
...
18c975c
Rename NOP3 to CHECSEQUENCEVERIFY in rpc tests (BtcDrak)
14d0130
Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFY (BtcDrak)
2016-07-08 11:39:10 +02:00
MarcoFalke
fa9976b853
[qa] test_framework: Add wrapper for stop_node
2016-07-07 10:28:42 +02:00
Bob McElrath
36ae37a9f9
Rename CTxinWitness -> CTxInWitness
2016-07-06 19:46:46 -04:00
BtcDrak
14d01309be
Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFY
2016-06-28 17:17:36 +01:00
Suhas Daftuar
330b0f31ee
[qa] p2p segwit tests
...
mininode now supports witness transactions/blocks, blocktools
has a helper for adding witness commitments to blocks, and script
has a function to calculate hashes for signature under sigversion
1, used by segwit.
Py3 conversion by Marco Falke
Test to make sure upgraded nodes don't ask for non-wit blocks by
Gregory Sanders.
2016-06-22 15:43:02 +02:00
Wladimir J. van der Laan
65c2058cc8
Merge #8066 : [qa] test_framework: Use different rpc_auth_pair for each node
...
fad1845
[qa] test_framework: Use different rpc_auth_pair for each node (MarcoFalke)
2016-06-20 13:41:11 +02:00
MarcoFalke
facb6c0bf8
[qa] mininode: fail on send_message instead of silent return
2016-06-17 13:31:31 +02:00
Wladimir J. van der Laan
9c3d0fab36
Merge #7892 : Add full UTF-8 support to RPC
...
7982fce
doc: Mention full UTF-8 support in release notes (Wladimir J. van der Laan)
6bbb4ef
test: test utf-8 for labels in wallet (Wladimir J. van der Laan)
a406fcb
test: add ensure_ascii setting to AuthServiceProxy (Wladimir J. van der Laan)
60ab9b2
Squashed 'src/univalue/' changes from 2740c4f..f32df99 (Wladimir J. van der Laan)
2016-06-16 12:08:35 +02:00
MarcoFalke
fa26c420bf
[qa] util: Move check_fee_amount out of wallet.py
2016-06-13 21:34:41 +02:00
Wladimir J. van der Laan
44c1b1c9bb
Merge #8141 : Continuing port of java comparison tool
...
ff2dcf2
Tests: Edit bloated varint test and add option for 'barely expensive' tests (mrbandrews)
12c5a16
Catch exceptions from non-canonical encoding and print only to log (mrbandrews)
291f8aa
Continuing port of java comptool (mrbandrews)
8c9e681
Tests: Rework blockstore to avoid re-serialization. (mrbandrews)
2016-06-13 11:37:37 +02:00
Wladimir J. van der Laan
a406fcb6ca
test: add ensure_ascii setting to AuthServiceProxy
...
Add a setting ensure_ascii to AuthServiceProxy. This setting,
defaulting to True (backwards compatible),
is passed through to json.dumps. If set to False, non-ASCII characters
>0x80 are not escaped. This is useful for testing server
input processing, as well as slightly more bandwidth friendly in case of
heavy unicode usage.
2016-06-10 15:20:49 +02:00
mrbandrews
291f8aa5da
Continuing port of java comptool
2016-06-02 14:42:09 -04:00
Pieter Wuille
f45f51e3ae
Fix interrupted HTTP RPC connection workaround for Python 3.5+
2016-06-02 19:17:04 +02:00
mrbandrews
8c9e681ff8
Tests: Rework blockstore to avoid re-serialization.
2016-05-31 14:21:40 -04:00
MarcoFalke
6ff2c8d29f
Merge #8104 : Tests: add timeout to sync_blocks() and sync_mempools()
...
e871f83
Tests: add timeout to sync_blocks() and sync_mempools() (Suhas Daftuar)
2016-05-29 19:18:55 +02:00
MarcoFalke
06bd4f637f
Merge #8098 : [qa] test_framework: Append portseed to tmpdir
...
fa57b0c
[qa] test_framework: Append portseed to tmpdir (MarcoFalke)
2016-05-27 08:22:09 +02:00
Suhas Daftuar
e871f8338a
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.
2016-05-26 14:19:07 -04:00
Suhas Daftuar
1ad9339508
Test framework: only cleanup on successful test runs
2016-05-25 05:43:50 -04:00
MarcoFalke
37f9a1f627
Merge #8047 : [qa] test_framework: Set wait-timeout for bitcoind procs
...
fab5233
[qa] test_framework: Set wait-timeout for bitcoind procs (MarcoFalke)
2016-05-20 17:34:11 +02:00
MarcoFalke
fa57b0c5ef
[qa] test_framework: Append portseed to tmpdir
...
This makes it possible to specify a tmpdir while running tests in
parallel
2016-05-20 09:18:41 +02:00
MarcoFalke
fad184550e
[qa] test_framework: Use different rpc_auth_pair for each node
2016-05-17 11:02:13 +02:00
MarcoFalke
fac9349798
[qa] Remove hardcoded "4 nodes" from test_framework
2016-05-15 12:58:53 +02:00
MarcoFalke
fab5233fe6
[qa] test_framework: Set wait-timeout for bitcoind procs
2016-05-12 13:11:20 +02:00
MarcoFalke
ccccc591a4
[qa] Add option --portseed to test_framework
2016-05-09 19:56:24 +02:00
MarcoFalke
4e14afe42f
Merge #7971 : [qa] Refactor test_framework and pull tester
...
fad3366
[qa] pull-tester: Adjust comment (MarcoFalke)
fafb33c
[qa] Stop other nodes, even when one fails to stop (MarcoFalke)
2222dae
[qa] Update README.md (MarcoFalke)
fabbf6b
[qa] Refactor test_framework and pull tester (MarcoFalke)
2016-05-09 17:06:44 +02:00
Jonas Schnelli
5ea450834e
Autofind rpc tests --srcdir
2016-05-09 15:05:58 +02:00
MarcoFalke
fafb33cdef
[qa] Stop other nodes, even when one fails to stop
2016-05-06 12:44:03 +02:00
MarcoFalke
fabbf6bd62
[qa] Refactor test_framework and pull tester
...
* log to stdout
* increase range for p2p and rpc ports
* UPPERCASE_CONSTANTS
* Stop nodes on CTRL+C
2016-05-06 12:43:34 +02:00
MarcoFalke
fa389d4edc
[qa] Switch to py3
2016-05-05 15:43:37 +02:00
MarcoFalke
fada064f67
[qa] test_framework: Properly print exceptions and assert empty dict
2016-04-26 18:04:26 +02:00
MarcoFalke
5555528b47
[qa] mininode: Unfiddle strings into bytes
2016-04-23 20:20:46 +02:00
Suhas Daftuar
807fa47a1e
Tests: Fix deserialization of reject messages
...
Assume that reject messages for blocks or transactions due to reason
REJECT_MALFORMED will not include the hash of the block or tx being rejected.
2016-04-20 09:27:26 -04:00