I'm wondering about what the best practices are around generating and maintaining key pools for a wallet.
What is the maximum number of keys/addresses that can be created for a single wallet? Phrased another way, what is the largest value one can safely put for the
If I generate some keys with
bitcoind keypoolrefillthen generate some new addresses and then call
keypoolrefillagain, will the original addresses still work, and will my private key now work for all addresses I've ever created?
Is there some way to determine how many keys are left in the current key pool?
The Bitcoin documentation says that this feature is actively being phased out. When will this happen and what will the new system be?
This wallet type is being actively phased out and discouraged from being used due to the backup hassle.
Answers to any of these questions is greatly appreciated.
Gavin Andresen (Bitcoin's Chief Scientist) has to say on the topic:
Backup every 30 sendtoaddress or generatenewaddress and you'll be fine-- you should always have at least 3 backup copies of all your keys.
If you're running a very busy service so backing up every 30 is too often, then run with -keypool=1000 and backup at least every 300 sends/generates.