Title: Duplicating BitcoinCore reorg Post by: harlequininja on October 30, 2022, 05:37:51 PM I'm running a full nod and I'd like to get another one running.
Is it possible to somehow just duplicate the database of the first node? I guess this question has already been asked on the forum. Title: Re: Duplicating BitcoinCore reorg Post by: NeuroticFish on October 30, 2022, 05:42:00 PM Is it possible to somehow just duplicate the database of the first node? I see no reason why not. Copy the data dir (see https://en.bitcoin.it/wiki/Data_directory ) on the new computer. You can use similar structure or you can run with -datadir parameter. Quote from: https://en.bitcoin.it/wiki/Data_directory The database files in the "blocks" and "chainstate" directories are cross-platform, and can be copied between different installations. Title: Re: Duplicating BitcoinCore reorg Post by: harlequininja on October 30, 2022, 08:12:05 PM Will give it a go ;D
Thank you for the wiki-entry, was very helpful. Title: Re: Duplicating BitcoinCore reorg Post by: NotATether on October 31, 2022, 06:16:14 AM peers.dat does not have any personally identifiable information because this information is serialized from (ultimately) CNode (https://github.com/bitcoin/bitcoin/blob/a1fff275e7b6e01a46ad248c3b4e220091c1e806/src/net.h#L346) which only contains addresses and some other connection stats, and its also used to display the GUI tables of peers such as this one (https://github.com/bitcoin/bitcoin/blob/7b3343f3009d38abe2de10e9fdc7f702d6a2cf1b/src/qt/peertablemodel.h). This statement on the wiki will be adjusted accordingly.
Title: Re: Duplicating BitcoinCore reorg Post by: BlackHatCoiner on November 01, 2022, 06:02:05 PM Copy indexes too, if you're running Bitcoin Core with txindex=1. If you're at linux, be careful not to screw it up with user permissions. This line is all that's needed:
Code: cp -r blocks chainstate indexes <destination_directory> You run it twice; one from your node to a hard drive, and the second from your hard drive to your other computer. |