aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p-acceptblock.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-03-29 14:16:42 -0400
committerJohn Newbery <john@johnnewbery.com>2017-03-30 08:39:12 -0400
commit6426716a9940eea0e4d6e53c55282de5de473784 (patch)
tree5a20532130210807955ce88f71cf6d529f04789c /test/functional/p2p-acceptblock.py
parent8ac80412867118172dc4172494304e19969e9489 (diff)
Add send_await_disconnect() method to p2p-compactblocks.py
p2p-compactblocks was incorrectly using sync_with_ping() when sending in invalid block. The node would disconnect us and never respond to the ping, so the sync_with_ping would just time out after 30 seconds and continue with the test. This commit adds a send_await_disconnect() method that sends the message, and then waits for the node to disconnect us. In this commit I've added the method to p2p-compactblocks.py, but a future commit could move it to mininode since it could be useful more generally. This commit reduces the p2p-compactblock runtime by 30 seconds.
Diffstat (limited to 'test/functional/p2p-acceptblock.py')
0 files changed, 0 insertions, 0 deletions