User Tools

Site Tools


guides:farming:movedb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
guides:farming:movedb [2021/10/09 13:07] vleesbanaanguides:farming:movedb [2023/09/10 06:45] – [How to move the Chia db to another folder] 172.69.33.188
Line 8: Line 8:
   - Then, go back to your Chia folder ''C:\Users\<YOURUSERNAME>\.chia\mainnet\'' and navigate to the "config" folder. Here you will find the config.yaml file. Open it with your favorite text editor and change the following entries:    - Then, go back to your Chia folder ''C:\Users\<YOURUSERNAME>\.chia\mainnet\'' and navigate to the "config" folder. Here you will find the config.yaml file. Open it with your favorite text editor and change the following entries: 
  
-^config.yaml entry   ^ From   ^ To   ^ +Changes are made using our example path ''D:\Chia_Blockchain'', but ofcourse you can replace this with whichever path you want to store your db filesIt is recommended that you run the db and wallet of an SSD.
-|(under full_node:) database_path: | ''db/blockchain_v1_CHALLENGE.sqlite''''D:/Chia_Blockchain/db/blockchain_v1_CHALLENGE.sqlite''+
-|peer_db_path: ''db/peer_table_node.sqlite'' | ''D:/Chia_Blockchain/db/peer_table_node.sqlite''+
-|(under wallet:) database_path: |''wallet/db/blockchain_wallet_v1_CHALLENGE_KEY.sqlite''|''D:/Chia_Blockchain/wallet/db/blockchain_wallet_v1_CHALLENGE_KEY.sqlite''+
-|wallet_peers_path: | ''wallet/db/wallet_peers.sqlite'' | ''D:/Chia_Blockchain/wallet/db/wallet_peers.sqlite''|+
  
 +^Database^config.yaml entry   ^ From:   ^ To:   ^
 +|Blockchain|full_node: database_path: | ''db/blockchain_v1_CHALLENGE.sqlite'' | ''D:/Chia_Blockchain/db/blockchain_v1_CHALLENGE.sqlite''|
 +|Blockchain peer table|full_node: peer_db_path:  | ''db/peer_table_node.sqlite'' | ''D:/Chia_Blockchain/db/peer_table_node.sqlite''|
 +|Wallet|wallet: database_path: |''wallet/db/blockchain_wallet_v1_CHALLENGE_KEY.sqlite''|''D:/Chia_Blockchain/wallet/db/blockchain_wallet_v1_CHALLENGE_KEY.sqlite''|
 +|Wallet peer table|wallet: wallet_peers_path: | ''wallet/db/wallet_peers.sqlite'' | ''D:/Chia_Blockchain/wallet/db/wallet_peers.sqlite''|
 +**Note: This guide was written before Chia v1.3.0. If you want to move the db after this, simply change the entries above with ''v1'' to ''v2''.** To learn how to upgrade from v1 to v2, see [[guides/farming/upgradedb|this guide]].
 +
 +
 +“Please do at your own risk” -Fellow Farmer
 +
 +==== Compactification ====
 +It should be noted that the blockchain file is a bit larger than currently necessary. This is because the [[https://github.com/Chia-Network/chia-blockchain/wiki/Timelords|Timelord]] focusses on creating the proof of time that moves the chain forward as fast as possible, but does not optimize for the smallest possible proof of Time. Bluebox Timelords fulfill this duty; they ex post scan the blockchain to see if there are any uncompressed proofs out there, which it then compactifies and gossips around the whole network. This helps reduce the size of the db. Check out [[https://www.arewecompactifiedyet.live/|arewecompactifiedyet.live]], a cool website that tracks the blockchain size and the % of compactified blocks to learn the state of compactification. 
  
guides/farming/movedb.txt · Last modified: 2023/11/17 10:51 by earl

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki