gweedo (OP)
Legendary
Offline
Activity: 1498
Merit: 1000
|
|
February 07, 2013, 10:08:41 PM |
|
My wallet.dat file is getting out of control how can I remove some addresses that were used in once off transactions and are now empty in php?
I know PHP has a berkley db tools to interact with it, so has anyone written a script for this?
|
|
|
|
deepceleron
Legendary
Offline
Activity: 1512
Merit: 1036
|
|
February 08, 2013, 05:34:23 AM Last edit: February 08, 2013, 05:51:58 AM by deepceleron |
|
Here's a start, as a bonus you get a language that's designed for data and analytics, not for making web pages. https://github.com/gavinandresen/bitcointoolsYou've got 6GB of blockchain and you're worried about your wallet? You shouldn't use a cron job for anything except Bitcoin RPC commands, accessing the data files when Bitcoin could be running is a bad thing.
|
|
|
|
gweedo (OP)
Legendary
Offline
Activity: 1498
Merit: 1000
|
|
February 08, 2013, 05:43:02 AM |
|
Yes when you have over 200,000 bitcoin addresses, the bitcoind system starts getting slow, and I want to make it faster, this would be one way. I guess one day I will be taking to write a script to clear it out.
|
|
|
|
deepceleron
Legendary
Offline
Activity: 1512
Merit: 1036
|
|
February 08, 2013, 06:02:08 AM |
|
You'd have a hard time figuring out what addresses to remove. If you make a script to "remove addresses with 0 balance and all their transactions if they previously received coins", it may remove persistent receiving addresses like 1gweedo, etc, and such a task would only work correctly if the information in the wallet is actually correct. It would be much better to just dump the private keys of addresses you want to keep and send the balance to a new wallet.
|
|
|
|
gweedo (OP)
Legendary
Offline
Activity: 1498
Merit: 1000
|
|
February 08, 2013, 06:15:07 AM |
|
You'd have a hard time figuring out what addresses to remove. If you make a script to "remove addresses with 0 balance and all their transactions if they previously received coins", it may remove persistent receiving addresses like 1gweedo, etc, and such a task would only work correctly if the information in the wallet is actually correct. It would be much better to just dump the private keys of addresses you want to keep and send the balance to a new wallet.
well these addresses are for one off transactions, that people know about that. I also need to keep the accounts intact, I mean the worst case I can rebuild the accounts from the database. I guess it is back to testnet and see what works.
|
|
|
|
K1773R
Legendary
Offline
Activity: 1792
Merit: 1008
/dev/null
|
|
February 08, 2013, 09:28:46 AM |
|
Yes when you have over 200,000 bitcoin addresses, the bitcoind system starts getting slow, and I want to make it faster, this would be one way. I guess one day I will be taking to write a script to clear it out. did you once already had more than 1 million addresses? still looking for a solution to manage 46M adresses. sry for topic hijacking!
|
[GPG Public Key]BTC/DVC/TRC/FRC: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
gweedo (OP)
Legendary
Offline
Activity: 1498
Merit: 1000
|
|
February 08, 2013, 05:55:52 PM |
|
Yes when you have over 200,000 bitcoin addresses, the bitcoind system starts getting slow, and I want to make it faster, this would be one way. I guess one day I will be taking to write a script to clear it out. did you once already had more than 1 million addresses? still looking for a solution to manage 46M adresses. sry for topic hijacking! what?
|
|
|
|
K1773R
Legendary
Offline
Activity: 1792
Merit: 1008
/dev/null
|
|
February 08, 2013, 07:04:26 PM |
|
Yes when you have over 200,000 bitcoin addresses, the bitcoind system starts getting slow, and I want to make it faster, this would be one way. I guess one day I will be taking to write a script to clear it out. did you once already had more than 1 million addresses? still looking for a solution to manage 46M adresses. sry for topic hijacking! what? did you manage to have a working wallet.dat with atleast 1m addresses?
|
[GPG Public Key]BTC/DVC/TRC/FRC: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
gweedo (OP)
Legendary
Offline
Activity: 1498
Merit: 1000
|
|
February 08, 2013, 07:14:53 PM |
|
Yes when you have over 200,000 bitcoin addresses, the bitcoind system starts getting slow, and I want to make it faster, this would be one way. I guess one day I will be taking to write a script to clear it out. did you once already had more than 1 million addresses? still looking for a solution to manage 46M adresses. sry for topic hijacking! what? did you manage to have a working wallet.dat with atleast 1m addresses? nope that was someone else I think I remember that thread or something
|
|
|
|
davout
Legendary
Offline
Activity: 1372
Merit: 1007
1davout
|
|
February 08, 2013, 07:59:34 PM |
|
Import the keys you use into a blank wallet, you'll just need JSON-RPC
|
|
|
|
|