aboutsummaryrefslogtreecommitdiff
path: root/qa/pull-tester
diff options
context:
space:
mode:
authorCory Fields <[email protected]>2017-02-08 01:17:58 -0500
committerCory Fields <[email protected]>2017-02-13 18:56:03 -0500
commitd9434918d277bba534933ebc8c63ba81e613f603 (patch)
tree4bf71e301e86cdab80fe9648b01fa904d66b8d31 /qa/pull-tester
parentqa: Expose on-connection to mininode listeners (diff)
downloaddiscoin-d9434918d277bba534933ebc8c63ba81e613f603.tar.xz
discoin-d9434918d277bba534933ebc8c63ba81e613f603.zip
qa: add a test to detect leaky p2p messages
This is certainly not exhaustive, but it's better than nothing. Adds checks for: - Any message received before sending a version - Any message received other than version/reject before sending a verack It also tries to goad the remote into sending a pong, address, or block announcement.
Diffstat (limited to 'qa/pull-tester')
-rwxr-xr-xqa/pull-tester/rpc-tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/qa/pull-tester/rpc-tests.py b/qa/pull-tester/rpc-tests.py
index 26bc6a73d..310181254 100755
--- a/qa/pull-tester/rpc-tests.py
+++ b/qa/pull-tester/rpc-tests.py
@@ -154,6 +154,7 @@ testScripts = [
'bumpfee.py',
'rpcnamedargs.py',
'listsinceblock.py',
+ 'p2p-leaktests.py',
]
if ENABLE_ZMQ:
testScripts.append('zmq_test.py')