change default keypool size

This commit is contained in:
Evan Duffield 2014-07-18 09:29:03 -07:00
parent 2aef5bf45a
commit 22e34e8cd6

View File

@ -1960,7 +1960,7 @@ bool CWallet::NewKeyPool()
if (IsLocked())
return false;
int64 nKeys = max(GetArg("-keypool", 100), (int64)0);
int64 nKeys = max(GetArg("-keypool", 1000), (int64)0);
for (int i = 0; i < nKeys; i++)
{
int64 nIndex = i+1;
@ -1983,7 +1983,7 @@ bool CWallet::TopUpKeyPool()
CWalletDB walletdb(strWalletFile);
// Top up key pool
unsigned int nTargetSize = max(GetArg("-keypool", 100), 0LL);
unsigned int nTargetSize = max(GetArg("-keypool", 1000), 0LL);
while (setKeyPool.size() < (nTargetSize + 1))
{
int64 nEnd = 1;