neobytes/qa/rpc-tests/test_framework
Alexander Block 0648496e21 Fix flaky p2p-fullblocktest (#2605)
* Announce blocks as HEADERS instead of INV in comptool

Announcing as INV results in one GETHEADERS message per INV item with
every GETHEADERS containing the same block locator info. This in turn
results in many (1088 in p2p-fullblocktests) replies with each having i+1
headers. As every message is sent in one go, the message processing queue
gets overloaded, leading to GETDATA timeouts for blocks and thus failing
the tests.

Announcing the blocks directly with HEADERS avoids all this and results in
one GETDATA per announced header.

This will later conflict with backported improvements from Bitcoin. When we
get to this point, we can simply ignore changes on Dash's side and take
the improvements from Bitcoin (which also switch to header announcement,
but after some refactorings)

* Give wait_for_pings more time

Large reorgs as in the p2p-fullblocktest can cause very long long delays
for the ping that we're waiting for. This was not a problem before #2593,
as before this wait_until was waiting forever.
2019-01-03 12:21:03 +03:00
..
__init__.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
authproxy.py Merge #8811: rpc: Add support for JSON-RPC named arguments 2018-01-18 07:38:57 +01:00
bignum.py Merge #7814: [qa] Switch to py3 2017-12-21 17:31:54 +01:00
blockstore.py Merge #8834: [qa] blockstore: Switch to dumb dbm 2018-01-12 09:56:53 +01:00
blocktools.py DIP3 integration tests (#2280) 2018-09-11 17:32:45 +03:00
comptool.py Fix flaky p2p-fullblocktest (#2605) 2019-01-03 12:21:03 +03:00
coverage.py Merge #8840: test: Explicitly set encoding to utf8 when opening text files 2018-01-12 09:56:53 +01:00
key.py Add p2p-fullblocktest.py 2015-08-21 15:31:37 -04:00
mininode.py Merge #10365: [tests] increase timeouts in sendheaders test 2018-12-31 09:38:08 +01:00
netutil.py Merge #8840: test: Explicitly set encoding to utf8 when opening text files 2018-01-12 09:56:53 +01:00
script.py Merge #8667: Fix SIGHASH_SINGLE bug in test_framework SignatureHash 2018-01-09 14:16:39 +01:00
siphash.py Implement SipHash in Python 2018-01-20 09:21:13 +01:00
socks5.py Merge #7814: [qa] Switch to py3 2017-12-21 17:31:54 +01:00
test_framework.py De-dashify env vars and dashify help text in tests instead (#2603) 2019-01-03 12:19:46 +03:00
util.py De-dashify env vars and dashify help text in tests instead (#2603) 2019-01-03 12:19:46 +03:00