Author

Topic: [1 BTC bounty] Remove address from Bitcoin Core wallet (Read 2746 times)

newbie
Activity: 4
Merit: 0
Alright, thanks for the importprivkey solution, that was stupid of me to not find myself... Should i give 0.5 BTC for that solution or what is the deal here as it was 1 of 2 questions?

What about the removeprivkey ? anyone have a solution for that?

In a PM i got this https://bitcoin.stackexchange.com/questions/3654/what-is-the-best-way-to-recover-from-an-accidental-double-spend/3657#3657
I dont know how to compile bitcoin core with "pull #220" and if its compatible with 0.9.4...
sr. member
Activity: 458
Merit: 250
From nothing to nothing
Use false to all addresses except the last with true.
hero member
Activity: 686
Merit: 502
Not a good idea to add 10000 addresses using importprivkey when each import triggers a full rescan.
At least with pywallet i could add the addresses and then bitcoin core could rescan when i start it, but not for each import, it would take a week.
No.
Code:
importprivkey 5gfasgfsgfd name1 false
importprivkey 5jhdhgfhghf name2 false
importprivkey 5gfgdssdgfd name3 false
importprivkey 5gtsgggggdg name4 false
importprivkey 5fgdgfdgfgf name5 true
the last true triggers the scan. the other disable it. the rescan will scan for all keys.


Yep, just found about that and came here to post this Smiley Very useful, wasn't aware of this option!

Nice Solution
legendary
Activity: 1512
Merit: 1012
Not a good idea to add 10000 addresses using importprivkey when each import triggers a full rescan.
At least with pywallet i could add the addresses and then bitcoin core could rescan when i start it, but not for each import, it would take a week.
No.
Code:
importprivkey 5gfasgfsgfd name1 false
importprivkey 5jhdhgfhghf name2 false
importprivkey 5gfgdssdgfd name3 false
importprivkey 5gtsgggggdg name4 false
importprivkey 5fgdgfdgfgf name5 true
the last true triggers the scan. the other disable it. the rescan will scan for all keys.


Yep, just found about that and came here to post this Smiley Very useful, wasn't aware of this option!
hero member
Activity: 1582
Merit: 502
Escrow the 1BTC and you are bound to find a solution....

It is not that hard  Wink

Escrow first please  Grin
hero member
Activity: 525
Merit: 531
Not a good idea to add 10000 addresses using importprivkey when each import triggers a full rescan.
At least with pywallet i could add the addresses and then bitcoin core could rescan when i start it, but not for each import, it would take a week.
No.
Code:
importprivkey 5gfasgfsgfd name1 false
importprivkey 5jhdhgfhghf name2 false
importprivkey 5gfgdssdgfd name3 false
importprivkey 5gtsgggggdg name4 false
importprivkey 5fgdgfdgfgf name5 true
the last true triggers the scan. the other disable it. the rescan will scan for all keys.
newbie
Activity: 4
Merit: 0
I believe adding will have to rescan the blocks otherwise it wont know how many funds are in the address I think.


Not a good idea to add 10000 addresses using importprivkey when each import triggers a full rescan.
At least with pywallet i could add the addresses and then bitcoin core could rescan when i start it, but not for each import, it would take a week.

Is there anyway to add a private key without trigging the rescan? What if i know that the address has not been used before and i dont care about stupid rescan?
legendary
Activity: 1512
Merit: 1012
I need from command line (linux) be able to remove specified address and the private key from a bitcoin core wallet.dat
The same needed to add private key to a wallet.dat from command line, do not want bitcoin-cli importprivkey with it triggets a rescan of the blockchain time consume.

example:

shutmyduck remove
justanotherduckwallet.dat
shutmyduck add duckwallet.dat

if this is already possible with pywallet just show me exactly how to do it and i will pay you.


I believe adding will have to rescan the blocks otherwise it wont know how many funds are in the address I think.

Yes, it will rescan it to check for transactions anyway

As for command line options, there's only --importprivkey ou --importhex, noone for removing keys AFAIK Smiley
hero member
Activity: 686
Merit: 502
I need from command line (linux) be able to remove specified address and the private key from a bitcoin core wallet.dat
The same needed to add private key to a wallet.dat from command line, do not want bitcoin-cli importprivkey with it triggets a rescan of the blockchain time consume.

example:

shutmyduck remove
justanotherduckwallet.dat
shutmyduck add duckwallet.dat

if this is already possible with pywallet just show me exactly how to do it and i will pay you.


I believe adding will have to rescan the blocks otherwise it wont know how many funds are in the address I think.
newbie
Activity: 4
Merit: 0
At least removing is possible with pywallet... There's a specific part for removing keys there Smiley

edit: http://www.devtome.com/doku.php?id=pywallet#delete_addresses_from_your_wallet

Thank you, but this does not seem to be available from command line?
legendary
Activity: 1512
Merit: 1012
At least removing is possible with pywallet... There's a specific part for removing keys there Smiley

edit: http://www.devtome.com/doku.php?id=pywallet#delete_addresses_from_your_wallet
newbie
Activity: 4
Merit: 0
I need from command line (linux) be able to remove specified address and the private key from a bitcoin core wallet.dat
The same needed to add private key to a wallet.dat from command line, do not want bitcoin-cli importprivkey with it triggets a rescan of the blockchain time consume.

example:

shutmyduck remove
justanotherduckwallet.dat
shutmyduck add duckwallet.dat

if this is already possible with pywallet just show me exactly how to do it and i will pay you.
Jump to: