Skip to content

Better fast sync #531

@Boog900

Description

@Boog900

What

We could improve fast sync with a better block downloader & filling the DB in stages.

Why

More speed 🚀

Where

P2P block downloader, blockchain database, cuprated.

How

  • Block downloader: allow the user to specify if you want the blocks returned in order (for fast sync we don't need them in order)
  • Database: Allow writing blocks out of order, some data needs previous blocks so once fast sync is done we need to fill in the parts of the DB that we couldn't fill in while syncing
  • Cuprated: For fast sync write blocks to DB in any order, when done fast syncing call the function on the DB that fills in the missing data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-binariesArea: Related to binaries.A-p2pArea: Related to P2P.A-storageArea: Related to storage.C-proposalCategory: A proposal of some kind, and a request for comments.E-hardExperience: Hard difficulty. Experience needed to fix: A lot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions