IBD slow due to blocks not requested until all headers received #11757

issue rebroad opened this issue on November 23, 2017
  1. rebroad commented at 8:19 AM on November 23, 2017: contributor

    Currently blocks are not requested until all headers are received. For example, running a testnet bitcoind now has been running for over 30 minutes and still no blocks have been requested yet (despite 350MB of data having been downloaded for headers from each node).

    Not so much an issue as a feature request, but it should be possible to download blocks once some headers have been downloaded (perhaps after checking there's a consensus between more than one connected peer).

  2. fanquake added the label P2P on Nov 24, 2017
  3. TheBlueMatt commented at 10:02 PM on December 6, 2017: member

    We deliberately disabled the downloading of blocks until we have a headers chain with at least nMinChainWork, which is an important DoS protection. It is possible headers sync could be sped up, but it should never be taking 30 minutes unless the peer you're downloading headers from is malicious/astoundingly slow. The "fix" here is to download headers from multiple peers if one is too slow, not download blocks during headers sync.

  4. promag commented at 11:33 PM on December 6, 2017: member

    Could it download a block if it's possible to verify it's an ancestor of one checkpoint?

  5. TheBlueMatt commented at 11:47 PM on December 7, 2017: member

    I think we'd prefer to get rid of checkpoints than introduce new uses for them...a long road, but we're getting there.

  6. promag commented at 1:25 AM on December 8, 2017: member

    Didn't know that.

  7. MarcoFalke closed this on Dec 8, 2017

  8. MarcoFalke locked this on Sep 8, 2021
Labels

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-04-22 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me