aboutsummaryrefslogtreecommitdiff
path: root/test/functional/assumevalid.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/assumevalid.py
parent8ac80412867118172dc4172494304e19969e9489 (diff)
downloadbitcoin-6426716a9940eea0e4d6e53c55282de5de473784.tar.xz
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/assumevalid.py')
0 files changed, 0 insertions, 0 deletions