Skip to content

Tech: Download snapshot #606

Closed
Closed
@iltoga

Description

@iltoga

Description

When a new node starts, it will first download all spine blocks.
Then, if mainchain block.height = 0 (first time the node appears on the network), the node must first download the latest available snapshot from the peers and apply it. then it will start downloading/smithing mainchain blocks normally

Breakdown

  • Get the last spine block manifest (if there is one)
  • Loop through the FileChunkHashes and Download all chunks from different peers
  • When download is finished, assemble them, decode the file and import it into db
  • Start downloading/smithing mainchain blocks normally

Additional Diagram / File

Metadata

Metadata

Assignees

Labels

FEATURENew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions