Skip to content

IBD Block Body Optimization #678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
michaelsutton opened this issue May 11, 2025 · 3 comments
Open

IBD Block Body Optimization #678

michaelsutton opened this issue May 11, 2025 · 3 comments
Assignees
Labels
p2p This issue is related to the peer-to-peer layer

Comments

@michaelsutton
Copy link
Contributor

michaelsutton commented May 11, 2025

Goal: Reduce bandwidth during initial block download (IBD) by avoiding redundant header transfers.

Current behavior:

  • IBD has two phases: headers download, then block bodies.
  • During the block body phase, headers are resent alongside bodies.

Proposed change:

  • Introduce a new P2P request/response that returns only hash + body without the header.
  • Requires a new P2P protocol version

Outcome:

  • Obvious bandwidth optimization by eliminating duplicate header transfers.
@michaelsutton michaelsutton added the p2p This issue is related to the peer-to-peer layer label May 11, 2025
@coderofstuff
Copy link
Collaborator

It’d be great if we can demonstrate through maybe a graph or chart or something the effect of this on the overall bandwidth consumed.

Even just point A vs point B comparison is fine.

I’d like to also know just how much this impacts total IBD time.

@Kaspa-francophone
Copy link

Kaspa-francophone commented May 15, 2025

there is no way to " sync the latests", in order to have the node quickly " connected" ( a kind of huge lets say monthly checksum") .
Then to focus like you ask here on optimizing the IBD, while " synced", on the background ? The IBD is a big problem for my raspberry PI nodes, with bad internet connection. @pierre discord.

@freshair18
Copy link
Collaborator

#652

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2p This issue is related to the peer-to-peer layer
Development

No branches or pull requests

4 participants