sdaftuar
commented at 4:40 PM on September 15, 2016:
member
Apparently the way lambda's were being used in the first test done by p2p-compactblocks.py was busted, which was masking several bugs in the test.
So I redid it a different way that seems to work correctly (I verified that passing in negated predicates causes test failure, which wasn't the case before), and fixed a few other bugs that came up:
sendcmpct messages need to be synchronized with RPC calls to generate()
headers must be synced in order for bitcoind to announce compact blocks
The last sendcmpct test omitted sending a sendcmpct message (so the test shouldn't have been passing as it was written).
I think this should be tagged for backport.
Fix broken sendcmpct test in p2p-compactblocks.py
Python lambda use was incorrect.
sendcmpct messages need to be synchronized with RPC calls to generate().
Headers need to be synced (eg with getheaders) for cmpctblock announcements
to start.
Last test omitted sending a sendcmpct message.
157254a4bf
fanquake added the label Tests on Sep 16, 2016
fanquake added the label Needs backport on Sep 16, 2016
MarcoFalke added this to the milestone 0.13.1 on Sep 16, 2016
btcdrak
commented at 1:52 PM on September 20, 2016:
contributor
utACK157254a
laanwj approved
laanwj
commented at 2:21 PM on September 20, 2016:
member
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-04-14 12:15 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me