Direct headers announcement (rebase of #6494) #7129

pull sipa wants to merge 2 commits into bitcoin:master from sipa:direct-headers-announcement changing 10 files +791 −14
  1. sipa commented at 11:10 AM on November 29, 2015: member

    This is a rebase of #6494, with one line (which @sdaftuar commented he forgot to remove) deleted.

    It also adds a commit to add the change to the bips document and the release notes.

  2. 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
    50262d8953
  3. Documentation updates for BIP 130 49fb8e89b7
  4. gmaxwell commented at 11:20 AM on November 29, 2015: contributor

    DOC ACK.

  5. sipa merged this on Nov 29, 2015
  6. sipa closed this on Nov 29, 2015

  7. sipa referenced this in commit 5d5ef3a4cf on Nov 29, 2015
  8. sipa cross-referenced this on Nov 29, 2015 from issue Allow block announcements with headers by sdaftuar
  9. MarcoFalke cross-referenced this on Nov 29, 2015 from issue Direct headers announcement by sipa
  10. sipa cross-referenced this on Nov 30, 2015 from issue Replace setInventoryKnown with a rolling bloom filter. by gmaxwell
  11. jonasschnelli cross-referenced this on Nov 30, 2015 from issue [Qt] reduce cs_main locks during tip update, more fluently update UI by jonasschnelli
  12. dgenr8 cross-referenced this on Mar 20, 2016 from issue [WIP] Direct headers announcement by dgenr8
  13. KrzysiekJ cross-referenced this on Jul 8, 2016 from issue Fix 0.12 release notes on block relaying by KrzysiekJ
  14. snogcel referenced this in commit a8a21986db on Aug 11, 2016
  15. sdaftuar cross-referenced this on Oct 18, 2016 from issue Headers announcement for nodes that can do headers. by rebroad
  16. str4d cross-referenced this on Jul 14, 2017 from issue Bitcoin 0.12 P2P/Net PRs 1 by str4d
  17. sdaftuar cross-referenced this on Jan 18, 2020 from issue P2P block inv notification bug by nopara73
  18. str4d cross-referenced this on Feb 19, 2021 from issue Replace setInventoryKnown with a rolling bloom filter by str4d
  19. zkbot referenced this in commit 9dd55615d0 on Feb 22, 2021
  20. zkbot referenced this in commit 2aa9fbbdfe on Mar 5, 2021
  21. str4d referenced this in commit efd4561d7e on Aug 13, 2021
  22. str4d referenced this in commit 7a29d40a81 on Aug 13, 2021
  23. zkbot referenced this in commit a7e877a350 on Aug 13, 2021
  24. str4d referenced this in commit d477208a28 on Aug 13, 2021
  25. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

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-20 06:55 UTC