Hi all,
I need to modify bitcoind source in order to add a new rpc command:
deleteaddressThe command should delete all keys, txs, accounts and other address-related data from wallet.dat as well as from memory without restart or rescan.
I've tried
Erase(std::make_pair(std::string("keymeta"), vchPubKey));
Erase(std::make_pair(std::string("key"), vchPubKey));
Erase(std::make_pair(std::string("ckey"), vchPubKey));
Erase(std::make_pair(std::string("wkey"), vchPubKey));
and DelAddressBook procedure, but it doesn't delete all info from file, and doesn't delete from memory. And doesn't delete transactions info from wallet.dat. Well, after restart validateaddress "ismine" shows negative status, but wallet.dat has the same size and still contains pub keys info related to deleted addresses (if you check with a hex editor).
I pay 3 BTC for this work. Escrow if you like.
How it should work (testing):
- to the clean just created wallet we add new private key using
importprivkey, which already has several transactions.
- after rescan wallet.dat is increased, added keys and tx info.
- we use
deleteaddress command, wallet.dat returns to it's initial size, 'validateaddress ismine' returns false.
It should work in both encrypted and unencrypted wallets.
Please tell me if you can write this addition, your terms etc.
Thank you.