|
July 18, 2014, 08:37:08 AM |
|
There is an additional option.
Make sure that you have a good backup of your current wallet, just in case you mess up on any of these steps.
Use dumpprivkey to get the private keys of all the addresses from the wallet that you want to keep for yourself.
Then you can use dumpprivkey to get the private key of your friend's address.
Then you can shut down Bitcoin Core and remove the wallet.dat file from the computer (but only if you're absolutely certain that you've got a good backup elsewhere).
When you start Bitcoin Core up again, it will create a brand new wallet.
You can use importprivkey to import your friend's address into this wallet.
Then you can shut down Bitcoin Core, and store a good backup of your friend's wallet.dat somewhere.
Once you are sure that you've got a good backup of your friend's wallet.dat, you can remove the wallet.dat from the bitcoin data directory, and start up Bitcoin Core again.
Once again you'll have a brand new wallet. Import the private keys from all of your addresses that you wanted to keep, and now you have two wallets. One with your friend's new address, and one with all of your other addresses.
|