diff options
| author | Patrick Lodder <[email protected]> | 2021-08-17 00:42:58 +0200 |
|---|---|---|
| committer | Patrick Lodder <[email protected]> | 2021-08-17 20:15:30 +0200 |
| commit | caf26b77ab880ecce2ef1eae50cd863ec9d3a52b (patch) | |
| tree | 7bb18b1bcb87b9fcdb448ca29db53486f82614ee /src/init.cpp | |
| parent | p2p-acceptblock: add steps 8, 9 to confirm node disconnects (diff) | |
| download | discoin-caf26b77ab880ecce2ef1eae50cd863ec9d3a52b.tar.xz discoin-caf26b77ab880ecce2ef1eae50cd863ec9d3a52b.zip | |
fixup p2p-acceptblock and mininode to test disconnects
without partially backporting a new testframework.
- Adds a condition to NodeConn that when asyncore calls handle_read
without any data, this must be a disconnect and closes the socket
- Adds a little loop in the p2p-acceptblock client that waits for
the socket to be in a closed state
- Makes expected disconnects non-optional in p2p-acceptblock
- Syncs the test descriptions and outputs with reality
Diffstat (limited to 'src/init.cpp')
0 files changed, 0 insertions, 0 deletions