Author

Topic: How can I create a cron job to prune out my wallet.dat file? (Read 1067 times)

legendary
Activity: 1372
Merit: 1008
1davout
Import the keys you use into a blank wallet, you'll just need JSON-RPC
legendary
Activity: 1498
Merit: 1000
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/bitcointools

You've got 6GB of blockchain and you're worried about your wallet?

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
legendary
Activity: 1792
Merit: 1008
/dev/null
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/bitcointools

You've got 6GB of blockchain and you're worried about your wallet?

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?
legendary
Activity: 1498
Merit: 1000
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/bitcointools

You've got 6GB of blockchain and you're worried about your wallet?

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?
legendary
Activity: 1792
Merit: 1008
/dev/null
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/bitcointools

You've got 6GB of blockchain and you're worried about your wallet?

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!
legendary
Activity: 1498
Merit: 1000
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.
legendary
Activity: 1512
Merit: 1036
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.
legendary
Activity: 1498
Merit: 1000
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/bitcointools

You've got 6GB of blockchain and you're worried about your wallet?

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.
legendary
Activity: 1512
Merit: 1036
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/bitcointools

You'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.
legendary
Activity: 1498
Merit: 1000
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?
Jump to: