Alright, so I have been attempting to be taught just a little extra concerning the blockchain and blockchain-development recently. 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 “appropriate” blockchain which merely get imported to the pc with the intention to pace up the synchronisation of the blockchain of a sure coin. I want to discover ways to create one among these bootstrap.dat-files on my own (or at the least be taught the idea behind it).

I discovered this publish. I adopted the directions within the second reply, working this cat blk000*.dat > bootstrap.dat code in Terminal which did create a bootstrap-file. I imported this to my second pc, began the consumer (Fastcoin zero.eight.7.2) and whereas this labored I used to be unable to restart the consumer because it virtually instantly freezes whereas it retains studying information from the disk. I’ve to power give up the consumer 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 line with 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 appropriate order (which I am undecided find out how to verify). I learn that Bitcoin uses a to resolve these points, however as I understood it it would not use the info on disk to do that however relatively from a server which isn’t what I am attempting to do.

Because the code in my third paragraph really did create a bootstrap-file, I determine I is perhaps on to one thing that method. However how do I keep away from the orphan-blocks/kind them out in addition to getting the “legitimate” blocks within the appropriate order? All assist might be significantly appreciated!

Source link


Please enter your comment!
Please enter your name here