dogecoin/qa/pull-tester
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
..
rpc-tests.py Allow block announcements with headers 2015-11-29 11:59:23 +01:00
run-bitcoind-for-test.sh.in Changed run-bitcoind-for-test.sh.in to non-executable mode. 2015-10-05 13:25:13 +01:00
tests_config.py.in Migrated rpc-tests.sh to all python rpc-tests.py 2015-10-01 11:28:11 -07:00