lbrycrd/qa/rpc-tests/test_framework
Suhas Daftuar 50262d8953 Allow block announcements with headers
This replaces using inv messages to announce new blocks, when a peer requests
(via the new "sendheaders" message) that blocks be announced with headers
instead of inv's.

Since headers-first was introduced, peers send getheaders messages in response
to an inv, which requires generating a block locator that is large compared to
the size of the header being requested, and requires an extra round-trip before
a reorg can be relayed.  Save time by tracking headers that a peer is likely to
know about, and send a headers chain that would connect to a peer's known
headers, unless the chain would be too big, in which case we revert to sending
an inv instead.

Based off of @sipa's commit to announce all blocks in a reorg via inv,
which has been squashed into this commit.

Rebased-by: Pieter Wuille
2015-11-29 11:59:23 +01:00
..
__init__.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
authproxy.py Add basic coverage reporting for RPC tests 2015-11-11 10:33:43 -08:00
bignum.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
blockstore.py Add p2p-fullblocktest.py 2015-08-21 15:31:37 -04:00
blocktools.py Add p2p-fullblocktest.py 2015-08-21 15:31:37 -04:00
comptool.py Add p2p-fullblocktest.py 2015-08-21 15:31:37 -04:00
coverage.py Add basic coverage reporting for RPC tests 2015-11-11 10:33:43 -08:00
key.py Add p2p-fullblocktest.py 2015-08-21 15:31:37 -04:00
mininode.py Allow block announcements with headers 2015-11-29 11:59:23 +01:00
netutil.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
script.py Add p2p-fullblocktest.py 2015-08-21 15:31:37 -04:00
socks5.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
test_framework.py Add basic coverage reporting for RPC tests 2015-11-11 10:33:43 -08:00
util.py Add basic coverage reporting for RPC tests 2015-11-11 10:33:43 -08:00