diff options
| author | John Newbery <[email protected]> | 2017-03-29 14:16:42 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2017-03-30 08:39:12 -0400 |
| commit | 6426716a9940eea0e4d6e53c55282de5de473784 (patch) | |
| tree | 5a20532130210807955ce88f71cf6d529f04789c /src/httpserver.cpp | |
| parent | Merge #10109: Remove SingleNodeConnCB (diff) | |
| download | discoin-6426716a9940eea0e4d6e53c55282de5de473784.tar.xz discoin-6426716a9940eea0e4d6e53c55282de5de473784.zip | |
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 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions