sdaftuar
commented at 7:56 PM on October 4, 2016:
member
Sorry for the code churn in this test; this is another attempt to resolve the test failure reported in #8842.
In #8854 I added a sync_with_ping() with the idea of making sure that we'd processed all the block announcements from the node before continuing in the test; however that is insufficient for making sure that the node had actually tried sending all the block announcements it's going to eventually send. My guess is that the test failures are happening in situations where the block announcements from the generate(101) call don't finish arriving until after the sync_with_ping(), throwing off the later tests.
So I replaced the sync_with_ping with an explicit check that the node's tip has been announced, before continuing on with the test. Hopefully this resolves the lingering issues.
[qa] Another attempt to fix race condition in p2p-compactblocks.py
sync_with_ping() only guarantees that the node has processed messages
it's received from the peer, not that block announcements from the node have
made it back to the peer. Replace sync_with_ping() with an explicit check that
the node's tip has been announced.
6976db2f46
fanquake added the label Tests on Oct 5, 2016
fanquake cross-referenced this on Oct 5, 2016 from issue [0.13] Backports by MarcoFalke
MarcoFalke
commented at 7:43 AM on October 5, 2016:
member
utACK6976db2
MarcoFalke added the label Needs backport on Oct 5, 2016
MarcoFalke added this to the milestone 0.13.1 on Oct 5, 2016
MarcoFalke referenced this in commit b73f0653f3 on Oct 5, 2016
sdaftuar
commented at 1:20 PM on October 6, 2016:
member
I suspect the failure in sendheaders may have the same underlying cause:a generate() call where the block announcements might be arriving later than expected. I'll try to fix that up in this PR as well.
[qa] Fix race condition in sendheaders.py
Also de-duplicates code that has been moved to mininode
b55d9411e7
sdaftuar renamed this: [qa] Another attempt to fix race condition in p2p-compactblocks.py [qa] Fix race conditions in p2p-compactblocks.py and sendheaders.py on Oct 6, 2016
sdaftuar
commented at 6:42 PM on October 6, 2016:
member
I believe I've addressed the occasional test failure in sendheaders.py as well now.
MarcoFalke referenced this in commit d6c83b95cf on Oct 6, 2016
MarcoFalke
commented at 7:33 PM on October 8, 2016:
member
utACKb55d941
instagibbs
commented at 8:46 AM on October 10, 2016:
member
utACKb55d9411e7e1aa36ddabba3b942f2e1c736c1bd9
btcdrak
commented at 5:39 PM on October 10, 2016:
contributor
utACKd6c83b95cff2ff290533593719d6501ecf128f13
MarcoFalke merged this on Oct 11, 2016
MarcoFalke closed this on Oct 11, 2016
MarcoFalke referenced this in commit d075479969 on Oct 11, 2016
MarcoFalke removed the label Needs backport on Oct 13, 2016
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC