Constrain constant values to a single location in code
This commit is contained in:
@@ -2260,7 +2260,7 @@ bool CWallet::NewKeyPool()
|
||||
if (IsLocked())
|
||||
return false;
|
||||
|
||||
int64_t nKeys = max(GetArg("-keypool", 100), (int64_t)0);
|
||||
int64_t nKeys = max(GetArg("-keypool", DEFAULT_KEYPOOL_SIZE), (int64_t)0);
|
||||
for (int i = 0; i < nKeys; i++)
|
||||
{
|
||||
int64_t nIndex = i+1;
|
||||
@@ -2287,7 +2287,7 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize)
|
||||
if (kpSize > 0)
|
||||
nTargetSize = kpSize;
|
||||
else
|
||||
nTargetSize = max(GetArg("-keypool", 100), (int64_t) 0);
|
||||
nTargetSize = max(GetArg("-keypool", DEFAULT_KEYPOOL_SIZE), (int64_t) 0);
|
||||
|
||||
while (setKeyPool.size() < (nTargetSize + 1))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user