Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: David Rabahy on September 04, 2013, 07:32:20 PM



Title: replace keypool
Post by: David Rabahy on September 04, 2013, 07:32:20 PM
Suppose I had a weak passphrase and then changed it to a strong one.  I worry that the keypool during the weak period needs to be replaced.

Am I obliged to create a whole new wallet or is there a trick to consume the keypool?


Title: Re: replace keypool
Post by: DeathAndTaxes on September 04, 2013, 07:34:06 PM
the default keypool is 100 keys.

if you call getnewaddress 100 times it will remove all existing keys from keypool (and auto replace them with newer ones).

from commandline:
bitcoind getnewaddress

from debug window:
getnewaddress


Title: Re: replace keypool
Post by: gmaxwell on September 04, 2013, 07:41:28 PM
If you reencrypt your wallet I _believe_ should consume the keypool and give you a new one. It does on initial encrypt and I've tested this case.