I just had an interesting situation where the blockchain sync was taking too long on a new rig. So I went to my old rig and copied the blockchain DB (that was completely synced through the app) and pasted it into the new rig.
Is this something that is ok to do it?
If so, can I just share the blockchain file (currently at 1.5GB) with someone else and they can use it?
How do we verify is the blockchain DB is legit?
The first couple times I tried to copy the db file over, I got an error message about the database being malformed. I then tried to incrementally update the files to see if it worked (using rsync --inplace --append) and it did
I ran chia start -r <wallet or node> to restart chia afterwards
Also if you happen to be running multiple nodes on your home network, you probably want to disable uPNP on one of them chia configure --enable-upnp false and then restart as above
Having fun learning blockchain and stuff . I find self in the same predicament and decided to manually move my blockchain file on a drive instead of copy across network to another new PC . That worked. The goal is to play and send mojo between one wallet and another, and have 2 different full_nodes.
Sorry in advance to ramble, but Im trying to understand the why not the how.
Here at start of July , my sql lite file (mainnet/db/block*.sqlite ) is about 6GB on my main node. I periodically copy my mainnet dir off to another HDD as a backup because the thought of having to re-sync from scratch would take what … a week (?) I find my wallet db file ( mainnet/wallet/db/block.sqlite ) is 3GB (? … wtf … why ? ). So the problem of sync just moved from the blockchain file to the wallet file.
I assume that my / our blockchain db file only holds a portion of all the global transactions, it appears to download all the heights from beginning of March 2021. So I gather that earlier adopters with sync’d blockchain DB files are going to be holding up the network in perpetuity … that sort of makes sense.
But still wondering
How big that mainnet db file will grow, what happens when the transaction volume takes off ? I cant forsee my home PC being able to keep up when Chia becomes the backbone of the crypto universe ( sarc ).
are other blockchains this slow to sync on a new node ?
now what about the wallet DB file …
I assume there’s no shortcut for copying the wallet DB from one source to another, if they are different wallets. So, why would a new, fresh wallet DB need to sync ? … There are no transactions in the new wallet. It is currently at height 72 K and I assume will need to sync up to the height of 530k and 3GB (?) . That part makes no sense. I find I need the full_node daemon and the wallet daemon to run minimally on PC2, its connected back to my mainnode:8444, the mainnet DB file is synced ( I copied it ), but the empty wallet is still way behind. After about 4 hrs its at height 230K so about 1/2 way done …
Last night i had do reinstall Ubuntu, but made a backup copy of the Chia folder.
After installed Chia and run once i stopped it, then i copied the file blockchain_v1_mainnet.sqlite and it synced in a few seconds.
But the wallet was synchronizing too, so i tried to copy the file blockchain_wallet_v1_mainnet.sqlite and its works too! Synced in e few seconds.
I am having a problem to find where to put the mainnet file!!! I have 1 pc on windows and 1 on ubuntu and can see the file. I just build and install ubuntu and installed chia… but there is no folder .chia and when i do a search for the blockchain_v1_mainnet.squite…
I did run chia and started to do the sync and still cant find the file!!!
Did you run chia init? This command initializes the directory structure for the .chia folder and sets up certs and config if not present.
Is it Ubuntu where you can’t find the folder? Open a Terminal window and type ls -A ~/
then press Enter. This will list all of the contents in your user Home folder including hidden files (files beginning with . are hidden files/folders). You should see .chia listed in the output. If it’s not, and your chia executables work (chia start farmer, chia wallet show, etc.), then you’ve done something completely off-instruction.
Thanks for the help…
Yesterday i just gave up and shut down the pc. Today turned on and the file was there!!! Not sure what to think…
Yesterday i did run the chia app and was starting to sync so shouldn’t have been there the .chia folder? Well who said that a good night of sleep doesn’t resolve some problems lol