Saturday, July 6, 2024

litecoin – Take away Orphan blocks from “private” blockchain

Alright, so I have been making an attempt to study slightly extra concerning 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 “appropriate” blockchain which merely get imported to the pc as a way to pace up the synchronisation of the blockchain of a sure coin. I want to learn to create certainly one of these bootstrap.dat-files on my own (or no less than study the idea behind it).

I discovered this publish. 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 might attempt to make some analysis on my own.

In line with this thread on Bitcointalk, a legitimate 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 methods to examine). 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 slightly from a server which isn’t what I am making an attempt to do.

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

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles