Skip to content

Direct headers announcement #5982

@sipa

Description

@sipa

Currently, on a new block we send an inv out with the hash of the new tip (and, after #5307, of all new blocks). With headers-first sync, we could instead just send out the headers immediately (they're only 2.5 larger, and the peer would likely be fetching those anyway).

To do so, we need several changes:

  1. Have a means of negotiating that the peer wants headers instead of block invs.
  2. Modify the code to send out the headers immediately and bypass sending invs.
  3. Be able to trigger the direct-download fetch strategy based on learned headers.

@sdaftuar Are you interested in this? You've been doing other block relay improvements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions