aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorJohn Newbery <[email protected]>2017-12-11 12:08:33 -0500
committerJohn Newbery <[email protected]>2017-12-19 11:20:12 -0500
commit2e029845919eedcb4c4ff5f951cc85d95da68ad1 (patch)
treefeac4789f1ca03f23b8a5f7e31c4bd0b81e99994 /src/httpserver.cpp
parent[tests] define NODE_NETWORK_LIMITED in test framework (diff)
downloaddiscoin-2e029845919eedcb4c4ff5f951cc85d95da68ad1.tar.xz
discoin-2e029845919eedcb4c4ff5f951cc85d95da68ad1.zip
[tests] node_network_limited - remove race condition
node_network_limited had a race condition, since wait_for_block() doesn't do what you might expect. It only checks the most recent block received over the P2P interface (perhaps we should rename the method wait_for_most_recent_block() to avoid future confusion). The test can fail if the node sends us invs for other blocks, we respond with a getdata, and the node sends us one of those blocks in the 0.05 second wait_until loop window. Fix this by not responding to inv messages with getdata messages.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions