qa: add a test to detect leaky p2p messages
commitd9434918d277bba534933ebc8c63ba81e613f603
authorCory Fields <cory-nospam-@coryfields.com>
Wed, 8 Feb 2017 06:17:58 +0000 (8 01:17 -0500)
committerCory Fields <cory-nospam-@coryfields.com>
Mon, 13 Feb 2017 23:56:03 +0000 (13 18:56 -0500)
tree4bf71e301e86cdab80fe9648b01fa904d66b8d31
parent8650bbb660eaf8c81d714f1518ecc8c35ae17463
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.
qa/pull-tester/rpc-tests.py
qa/rpc-tests/p2p-leaktests.py [new file with mode: 0755]