Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: BTC Turkiye on February 10, 2018, 12:02:08 AM



Title: Using the same block files for multiple coins
Post by: BTC Turkiye on February 10, 2018, 12:02:08 AM
I have about 10 different Forked coin wallets on my desktop and they all are waiting to be synced which means 170GB and 2-3 weeks for each.

So my question is that;
Is there anyway to use the same blocks or block files for other every coin that has a QT wallet?


Title: Re: Using the same block files for multiple coins
Post by: aleksej996 on February 10, 2018, 01:55:47 AM
There is no way to be sure, as it depends on the implementation of the forked coin's wallet.
But I would say that it is reasonable to assume so, as these clients are almost certainly just software forks of the Bitcoin Core client.

Simply copying the data directory should work and all invalid blocks should be discarded, as I understand.
Alternatively to save space on your hard drive, it might be wise to make soft links to older block files, assuming you are using Linux.


Title: Re: Using the same block files for multiple coins
Post by: BTC Turkiye on February 10, 2018, 02:00:14 AM
Thank you for helping

1- I`m not using linux and I`m not good at it
2- Simply copying the entire data folder in windows doesn`t work in most cases. Sometimes you have to use -rescan  -skiphardforkibd –bootstrap or combinations of these kinda commands to get by but even then i couldn`t figure out a way to do it without an error or an issue


Title: Re: Using the same block files for multiple coins
Post by: Xynerise on February 10, 2018, 08:24:19 AM
If they were in Core at the time of the fork then you can run
Code:
dumpprivkey <address>
for the addresses that contain the forked coins and then import the private keys into an SPV wallet of the forked coin.


If you already have a synced copy of the bitcoin blockchain then you can use it to bootstrap the other forked coin wallets because they share the same UTXO history as bitcoin before the fork.
Just follow the advice here: https://bitcointalk.org/index.php?topic=2816604.msg28871645#msg28871645


Title: Re: Using the same block files for multiple coins
Post by: Patatas on February 10, 2018, 08:30:56 AM
I have about 10 different Forked coin wallets on my desktop and they all are waiting to be synced which means 170GB and 2-3 weeks for each.

So my question is that;
Is there anyway to use the same blocks or block files for other every coin that has a QT wallet?
- There are multiple ways of doing it.If you're technically challenged,better hire someone who would do that for you or you can follow stuff that is discussed here.
- The basics principles lies in downloading the blocks until your coin was forked,copy them and paste into your forked coin's QT wallet and let it sync.This way you wouldn't have to download the chain all over again for every forked coin.
- Follow this thread : https://bitcointalk.org/index.php?topic=2816604.msg28832141#msg28832141


Title: Re: Using the same block files for multiple coins
Post by: Jet Cash on February 10, 2018, 09:04:35 AM
I think the term "forked coin" is unfortunate. To my mind they are parallel chain coins. I don't see how you can use the same chain for different coin wallets after the height of the divergance. I believe that a Bitcoin cash wallet can cope with chains for both Bitcoin and Bitcoin cash, but I'm not sure how it manages that. I've copied the Bitcoin blockchain onto an external hard drive, and created a new Bitcoin node on a different computer, and that seems to work without too much trouble, you just need to make sure that you copy the ssociated files as well as the blocks.


Title: Re: Using the same block files for multiple coins
Post by: achow101 on February 10, 2018, 05:40:09 PM
Is there anyway to use the same blocks or block files for other every coin that has a QT wallet?
There is a way using symbolic links, but I wouldn't recommend it as it will likely just corrupt your block files. So in practice, there isn't. All you an do is copy and paste the data directory. When you do that, you have to make sure that the data directory you copy does not have blocks that would be invalid to the forked coin, i.e. there are no blocks after the forking point.


Title: Re: Using the same block files for multiple coins
Post by: BTC Turkiye on June 28, 2018, 08:30:27 AM
Thanks everyone for their help