litecoin – Take away Orphan blocks from “private” blockchain

0
58


Alright, so I have been attempting to be taught a bit of extra in regards to the blockchain and blockchain-development currently. For each different altcoin, I’ve seen that there is such a factor as a bootstrap.dat-file which, as I understood it, basically is a file containing the “right” blockchain which merely get imported to the pc with the intention to velocity up the synchronisation of the blockchain of a sure coin. I want to learn to create one in every of these bootstrap.dat-files on my own (or no less than be taught the speculation behind it).

I discovered this put up. I adopted the directions within the second reply, operating this cat blk000*.dat > bootstrap.dat code in Terminal which did create a bootstrap-file. I imported this to my second pc, began the shopper (Fastcoin 0.8.7.2) and whereas this labored I used to be unable to restart the shopper because it virtually instantly freezes whereas it retains studying information from the disk. I’ve to pressure give up the shopper to get out of this. I emailed the help and whereas I wait for his or her reply I figured I would attempt to make some analysis on my own.

In response to this thread on Bitcointalk, a sound bootstrap.dat-file doesn’t comprise orphan blocks (which I do know mine does) and have the blocks within the right order (which I am undecided find out how to test). I learn that Bitcoin makes use of a linearize.py-script to resolve these points, however as I understood it it does not use the information on disk to do that however fairly from a server which isn’t what I am attempting to do.

Because the code in my third paragraph truly did create a bootstrap-file, I determine I may be on to one thing that manner. However how do I keep away from the orphan-blocks/type them out in addition to getting the “legitimate” blocks within the right order? All assist might be drastically appreciated!

LEAVE A REPLY

Please enter your comment!
Please enter your name here