p2p-compactblocks.py:
Initializing test directory /tmp/test3yd_2q3h/2
start_node: bitcoind started, waiting for RPC to come up
start_node: RPC succesfully started
MiniNode: Connecting to Bitcoin Node IP # 127.0.0.1:11016
Testing SENDCMPCT p2p message...
Testing compactblock headers and shortIDs are correct...
Assertion failed:
Stopping nodes
Not cleaning up dir /tmp/test3yd_2q3h/2
Failed
stderr:
File "/home/travis/build/bitcoin/bitcoin/qa/rpc-tests/test_framework/test_framework.py", line 151, in main
self.run_test()
File "/home/travis/build/bitcoin/bitcoin/build/../qa/rpc-tests/p2p-compactblocks.py", line 614, in run_test
self.test_compactblock_construction()
File "/home/travis/build/bitcoin/bitcoin/build/../qa/rpc-tests/p2p-compactblocks.py", line 264, in test_compactblock_construction
assert(self.test_node.last_cmpctblock is not None)
Pass: False, Duration: 7 s
MarcoFalke
commented at 6:51 PM on September 29, 2016:
member
Thanks for the issue! I saw this failure earlier at least twice (only on travis, though)
MarcoFalke added the label Tests on Sep 29, 2016
sdaftuar
commented at 7:21 PM on September 29, 2016:
member
Oops, I'll take a look...
MarcoFalke closed this on Oct 1, 2016
MarcoFalke
commented at 8:40 PM on October 2, 2016:
member
sdaftuar
commented at 2:55 PM on October 3, 2016:
member
Ugh, I will take another look, thanks for noticing.
sdaftuar
commented at 8:00 PM on October 3, 2016:
member
Ok I think I see what I did wrong in #8854 -- syncing with a ping doesn't ensure that all block announcements have made it to us, just that any that have been announced have been processed.
I'm working on a new fix (my idea is to replace that sync_with_ping() with logic to wait until the tip has been announced), but I'm having trouble reproducing the problem.
MarcoFalke
commented at 8:52 AM on October 11, 2016:
member
Please let me know if this is still an issue.
MarcoFalke closed this on Oct 11, 2016
jnewbery
commented at 2:38 PM on October 24, 2016:
member
ryanofsky
commented at 8:41 PM on October 24, 2016:
member
Looked into the failure, but so far couldn't find a problem in the test setup that would cause it.
The failure happened in line 138 of the sync_blocks util function when the two test nodes failed to sync after 60 seconds. The place where the failing sync_blocks was called was line 809 of run_test after segwit was activated on node 1. Node 1 should have added more blocks than node 0 at that point, so some kind of failure must have happened to cause node 0 not to receive (or accept) the new blocks from node 1, and the sync_block function to time out.
Since I don't have any good theories on what would cause node 0 not to sync with node 1, I'm currently running the test in a loop to try to reproduce the problem.
I added some debug prints and made the following change to avoid a different (unrelated) intermittent test failure:
--- a/qa/rpc-tests/p2p-compactblocks.py
+++ b/qa/rpc-tests/p2p-compactblocks.py
@@ -300,8 +300,8 @@ class CompactBlocksTest(BitcoinTestFramework):
assert(segwit_tx_generated) # check that our test is not broken
# Wait until we've seen the block announcement for the resulting tip
- tip = int(self.nodes[0].getbestblockhash(), 16)
- assert(self.test_node.wait_for_block_announcement(tip))
+ tip = int(node.getbestblockhash(), 16)
+ assert(test_node.wait_for_block_announcement(tip))
# Now mine a block, and look at the resulting compact block.
test_node.clear_block_announcement()
laanwj reopened this on Oct 25, 2016
ryanofsky
commented at 5:36 PM on October 25, 2016:
member
Update: running the test overnight on my workstation showed the sync_blocks call returning true after 3 loop iterations in 1060 out of 1089 runs, and returning true after 2 loop iterations in the other 29 runs. It never got anywhere close to the 60 iterations that would have been required to cause the timeout.
ryanofsky referenced this in commit 6109d86848 on Oct 27, 2016
ryanofsky referenced this in commit 6116439514 on Nov 1, 2016
ryanofsky referenced this in commit f6c7943782 on Nov 3, 2016
ryanofsky referenced this in commit dac53b58b5 on Nov 7, 2016
laanwj referenced this in commit 7977a1157a on Nov 11, 2016
ryanofsky
commented at 3:27 PM on November 11, 2016:
member
This issue should be closed now that #9058 is merged.
laanwj closed this on Nov 11, 2016
laanwj
commented at 4:35 PM on November 11, 2016:
member
Yes, let's be optimistic and close it :)
MarcoFalke referenced this in commit 573b575174 on Nov 20, 2016
MarcoFalke referenced this in commit c65fb7c3ff on Nov 20, 2016
MarcoFalke referenced this in commit e8461666ec on Nov 20, 2016
dagurval referenced this in commit 81ba25c7cd on Jan 3, 2017
dagurval referenced this in commit 4f1f2b713c on Jan 3, 2017
dagurval referenced this in commit 10b20ffd6b on Jan 3, 2017
dagurval referenced this in commit 3a4ca4106b on Jan 3, 2017
dagurval referenced this in commit bf6e9543ce on Jan 6, 2017
dagurval referenced this in commit 75de4074f0 on Jan 11, 2017
dagurval referenced this in commit 1d6e228483 on Jun 7, 2017
dagurval referenced this in commit 45a78b33d0 on Jun 7, 2017
dagurval referenced this in commit d53079c7e0 on Jun 8, 2017
dagurval referenced this in commit 3b0f998877 on Jun 8, 2017
dgenr8 referenced this in commit 44931ccce6 on Jun 29, 2017
gladcow referenced this in commit 751d88e974 on Mar 5, 2018
gladcow referenced this in commit 7863436edf on Mar 13, 2018
gladcow referenced this in commit 5a700a70d2 on Mar 14, 2018
gladcow referenced this in commit 32ac7600d1 on Mar 15, 2018
gladcow referenced this in commit 921f64f0e1 on Mar 15, 2018
gladcow referenced this in commit 1b5bbf0181 on Mar 15, 2018
gladcow referenced this in commit 90d822bb04 on Mar 15, 2018
gladcow referenced this in commit 30aff7f3c1 on Mar 24, 2018
gladcow referenced this in commit ac2cd34f51 on Apr 4, 2018
UdjinM6 referenced this in commit bc45a2f87a on Apr 11, 2018
andvgal referenced this in commit fd5c50bc2b on Jan 6, 2019
CryptoCentric referenced this in commit dd3fd51204 on Feb 28, 2019
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-03 03:15 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me