aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-04-21 21:00:04 -0400
committerMarcoFalke <falke.marco@gmail.com>2018-04-21 21:00:06 -0400
commitcac6d1184da5e777c7cc1f6088f50951682582ed (patch)
tree7e137370f67d15f9d7df7c2f9dda20ff53dcee7d /src/compat.h
parentf644ea487afc452b48746544e0ae7f4e29b37439 (diff)
parentc1d742025caec62cf38cea1166fa6c4d0f7e207b (diff)
downloadbitcoin-cac6d1184da5e777c7cc1f6088f50951682582ed.tar.xz
Merge #13048: [tests] Fix feature_block flakiness
c1d742025c [tests] Fix feature_block flakiness (John Newbery) Pull request description: feature_block.py occasionally fails on Travis. I believe this is due to a a race condition when reconnecting to bitcoind after a subtest that expects disconnection. If the test runs ahead and sends the INV for the subsequent test before we've received the initial sync getheaders, then we may end up sending two headers messages - one as a response to the initial sync getheaders and one in response to the INV getheaders. If both of those headers fail validation with a DoS score of 50 or higher, then we'll unexpectedly be disconnected. There is only one validation failure that has a DoS score bewteen 50 and 100, which is high-hash. That's why the test is failing immediately after the "Reject a block with invalid work" subtest. Fix is to wait for the initial getheaders from the peer before we start populating our blockstore. That way we won't have any invalid headers to respond to it with. Tree-SHA512: dc17d795fcfaf0f8c0bf1e9732b5e11fbc8febbfafba4c231b7c13a5404a2c297dcd703a7a75bc7f353c893e12efc87f424f2201abd47ba5268af32d4d2e841f
Diffstat (limited to 'src/compat.h')
0 files changed, 0 insertions, 0 deletions