Commit Graph

8 Commits

Author SHA1 Message Date
lateminer
34b50d3645 Update qa from Bitcoin Core 0.13.2 2018-11-10 18:07:40 +03:00
Russell Yanofsky
dc8f0bd8de Modify getblocktxn handler not to drop requests for old blocks 2018-10-24 22:35:37 +03:00
Matt Corallo
e13c064eec More agressively filter compact block requests 2018-10-24 22:22:07 +03:00
Pieter Wuille
1b70520ceb Align constant names for maximum compact block / blocktxn depth 2018-10-23 23:24:58 +03:00
Suhas Daftuar
531d15ea84 [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.

Github-Pull: #8882
Rebased-From: 6976db2f4687d575e1b4bee5aaf1d93a794f23c3
2018-10-21 23:36:16 +03:00
Suhas Daftuar
90f833fe60 [qa] Fix race condition in p2p-compactblocks test
Also fix a bug in the sync_with_ping() helper function

Github-Pull: #8854
Rebased-From: b5fd666984fdb7125cb809c773b36034f32128cc
2018-10-21 23:36:07 +03:00
Suhas Daftuar
79a8a8b012 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.

Github-Pull: #8739
Rebased-From: 157254a4bfdfc4ca3ad5bf2d84e82f290bd0c7f2)
2018-10-21 23:35:49 +03:00
Suhas Daftuar
1df646211a Add p2p test for BIP 152 (compact blocks) 2018-10-21 23:35:40 +03:00