diff options
| author | Gregory Maxwell <[email protected]> | 2017-07-17 08:16:36 +0000 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2017-07-17 13:46:15 +0000 |
| commit | b0e8e2de8408cbaed9d70914c67b4c9f11397cb7 (patch) | |
| tree | 47397eb7104b1408d27baa3631123ea1eb5d7828 /src | |
| parent | Increase wallet default keypool size to 1000. (diff) | |
| download | discoin-b0e8e2de8408cbaed9d70914c67b4c9f11397cb7.tar.xz discoin-b0e8e2de8408cbaed9d70914c67b4c9f11397cb7.zip | |
Print one log message per keypool top-up, not one per key.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/wallet.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index d8c1dd94f..5db13ef02 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3213,7 +3213,9 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize) } else { setExternalKeyPool.insert(nEnd); } - LogPrintf("keypool added key %d, size=%u (%u internal), new key is %s\n", nEnd, setInternalKeyPool.size() + setExternalKeyPool.size(), setInternalKeyPool.size(), internal ? "internal" : "external"); + } + if (missingInternal + missingExternal > 0) { + LogPrintf("keypool added %d keys (%d internal), size=%u (%u internal)\n", missingInternal + missingExternal, missingInternal, setInternalKeyPool.size() + setExternalKeyPool.size(), setInternalKeyPool.size()); } } return true; |