How do I know my wallet.dat actually already contains 100+ addresses ready to be used?

3

I'm using the standard commandline client (under OSX, in case this matters).

I've read in some threads that it is smart enough to pregenerate 100+ addresses to be used in future when you ask them, so that if you backup an earlier wallet, the future private keys are not lost.

This would be cool, but how do I check it is really true?

Every time I "get a new address", it seemed to me it took enough time to suspect it was generating it on the fly, not using it from a pregenerated pool. Maybe it was slow for other reasons, though, and that's why I'd like to check somehow.

o0'.

Posted 2012-01-19T18:26:57.157

Reputation: 5 180

Answers

5

you can check by directly exploring the content of your wallet.dat file, which is a bdb database. there are various tools for exploring the wallet, one of which is gavin's bitcointools: https://github.com/gavinandresen/bitcointools

Another exporter is pywallet.py.

nanotube

Posted 2012-01-19T18:26:57.157

Reputation: 2 254

3

Clicking "generate new address" takes a time, because after returning one fresh address form the pregenerated pool, an actual new one is generated to refill the pool with.

Pieter Wuille

Posted 2012-01-19T18:26:57.157

Reputation: 54 032

True, lol, I should have realised that!o0'. 2012-01-28T10:06:07.593

-1

This would be cool, but how do I check it is really true?

I haven't tried this:

Backup your wallet.dat and generate a new receiving address. Then delete wallet.dat and restore from the backup. Now generate a "new" receiving address. It should be the same one as the first one.

Convinced?

Eyal

Posted 2012-01-19T18:26:57.157

Reputation: 1 539