2
1
I'm checking out the test net and a friendly person gave me access to his private key so that I didn't need to generate coins, so I importprivkey the key, sent me some coins and...
Well, I understand that now my wallet contains those 2 addresses, how can I remove his address, if possible?
Why do I want to do this? Because I'm testing stuff out and I don't want his transactions / tests cloud mine.
Thanks
6Your answer is correct, but I wanted to note that it might be easier in this specific case to use dumpwallet to create a text file of all keys, delete the single key @Valmond doesn't want, move the wallet.dat away, and then use importwallet to import the modified dumpwallet backup. Because dumpwallet also includes the date each key was first used, this can also save import (rescanning) time. – David A. Harding – 2015-03-09T22:00:08.083
I often have wondered why it's so cumbersome myself: perhaps the possibility of a lost private key outweighs the convenience factor – Wizard Of Ozzie – 2015-03-10T03:06:45.650
Thanks, perfect! ps. I bet deleting a private key isn't something people other than developers need to do so it could be risky to have that option. – Valmond – 2015-03-11T08:16:31.053