Closed
Description
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