Bitcoin Forum
May 28, 2024, 12:23:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Removing addresses from wallet.dat  (Read 1037 times)
romerun (OP)
Legendary
*
Offline Offline

Activity: 1078
Merit: 1001


Bitcoin is new, makes sense to hodl.


View Profile
April 08, 2014, 07:23:02 AM
 #1

Hi, I'd been doing a stupid thing making my wallet full of empty addresses, now the size of wallet.dat is 150MB, and it's noticeably slow occasionally when query thru rpc, I guess the wallet size must be hurting the overall performance. Is there a library that I can use to navigate my wallet, and remove those useless addresses/private keys ?
/dev/null
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
April 08, 2014, 07:27:39 AM
 #2

I think pywallet can do that.

DubFX
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
April 08, 2014, 07:29:38 AM
 #3

Hi, I'd been doing a stupid thing making my wallet full of empty addresses, now the size of wallet.dat is 150MB, and it's noticeably slow occasionally when query thru rpc, I guess the wallet size must be hurting the overall performance. Is there a library that I can use to navigate my wallet, and remove those useless addresses/private keys ?
Here you go:
http://bitcoin.stackexchange.com/questions/23828/delete-bitcoin-address-using-pywallet
Dare
Hero Member
*****
Offline Offline

Activity: 508
Merit: 500


Techwolf on #bitcoin and Reddit


View Profile WWW
April 10, 2014, 02:47:14 AM
 #4

Hi, I'd been doing a stupid thing making my wallet full of empty addresses, now the size of wallet.dat is 150MB, and it's noticeably slow occasionally when query thru rpc, I guess the wallet size must be hurting the overall performance. Is there a library that I can use to navigate my wallet, and remove those useless addresses/private keys ?
Here you go:
http://bitcoin.stackexchange.com/questions/23828/delete-bitcoin-address-using-pywallet

This would work, but if you have a recent backup you can restore to that instead of needing to use pywallet. If not, you should create one both before and after removing the extra addresses.

BTC: 1M8oUcBnkRDEhWWgV8ZXLTB6p1mgnejVbX
How Forum Activity Works
Bitcointalk Forum Rules
|
|
|
Firstbits (lucky vanitygen): 1WoLfRUGDx1
How Forum Trust Works
Bitcoin Source Code
sumana
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
April 12, 2014, 01:56:31 PM
 #5

u can save needed address private keys and later import in new wallet ?

signed
byt411
Hero Member
*****
Offline Offline

Activity: 798
Merit: 1000


View Profile
April 12, 2014, 02:52:23 PM
 #6

u can save needed address private keys and later import in new wallet ?

Yes.
pandit
Member
**
Offline Offline

Activity: 67
Merit: 10


View Profile
April 16, 2014, 03:02:51 AM
 #7

u can save needed address private keys and later import in new wallet ?

Yes.
how to do that thing

.
Yuki1988
Hero Member
*****
Offline Offline

Activity: 614
Merit: 500



View Profile
April 16, 2014, 03:21:52 AM
 #8

u can save needed address private keys and later import in new wallet ?

Yes.
how to do that thing

Unlock your wallet if it is password protected with "walletpassphrase <passphrase> <timeout>"
Export your private keys with "dumpprivkey <bitcoinaddress>"

To import a private key, simply enter "importprivkey <bitcoinprivkey>"

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!