Tuesday, 20 October 2015

Cleaning up your wallet-qt when it clogs with transactions.

how to clean yr wallet-qt


you data directory holds a complete copy of the block chain, and your wallet-qt holds every single transaction that has taken place for each address you "own".
these competition addresses have been subject to an awful lot of transactions :D

it can be useful to create a clean slate now and then. to much information can clog your wallet-qt.


the above wallet was becoming very sluggish.

things to know - all your private/public keys are stored in a file called "wallet.dat", this file is in your data directory.

to help manage your addresses, you can have multiple wallets with different addresses. this is done by having multiple wallet.dat files, then you can switch between them as you desire.



here is a picture of my macintosh data directory, in it you can see a wallet.dat and a wallet.datBAK. I swap wallets by renaming the files, it's also possible to keep wallet.dat's elsewhere and move them as you will.

to swap it's necessary to STOP your wallet-qt, before swapping.

DONT FORGET these files hold your access to all your coins. if you break them, you could lose all your coins. so keep backups of either the wallet.dat files, or the privkeys or both.

           

which leads back to HOW TO CLEAN YOUR WALLET. this is simply done transferring all desired coins to a new empty address.


TL/DR           
step 1. generate a new address
step 2. dump private key
step 3. send coins to new address
step 4. quit wallet
step 5. rename wallet.dat to wallet.bak (or whatever)
step 6. restart wallet
step 7. import private key from step 2

INDEPTH VERSION           


step 1. go to receive coins, press New Address button, the above dialog will popup, here you can name the address, then when you press ok it will display a new address.
copy this new address
eg B8QX8peKA9LvDb4Ya5GaMWwwLQoukV2aRY



step 2. go to Help/Debug window/console, type in:
> dumpprivkey B8QX8peKA9LvDb4Ya5GaMWwwLQoukV2aRY

 step 3. go to send coins, send them.
this shot is using Coin Control to help specify which coins. this is not strictly necessary in this scenario but it maybe useful.
to access Coin Control, go to Preferences/Display, tick "Display coin control".

step 4. quit wallet


step 5. rename wallet.dat -> wallet.bak
i am using wallet.datBAK02, you can use whatever you want

in this case there is no actual need to worry about the lack of wallet.dat file as the wallet will create one with new keys on startup.

step 6. restart wallet.


there will now be a new wallet.dat file in your data directory.


you will have no transaction data

step 7. go to debug console, type in:
>importprivkey Pe69Ten35qDWqc5cHbGEZfG5bq9npRtY8WkjXAvfGGaJiUQMFo63 newaddress 
it will hang for a moment. 
above i have named the imported key, that is not necessary, but it maybe useful for neatness.


then when it finishes your new wallet should have all the coins

--

OR 

send your coins to an external site, such as cyptobetfair.com or an exchange (when bumbacoin is on one)

step 1. go to an external site, and get a deposit address
step 2. dump private key
step 3. send coins to new address
step 4. quit wallet
step 5. rename wallet.dat to wallet.bak (or whatever)
step 6. restart wallet
step 7. import private key from step 2







No comments:

Post a Comment