diff options
author | Gregory Maxwell <greg@xiph.org> | 2017-07-17 08:16:36 +0000 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2017-07-17 13:46:15 +0000 |
commit | b0e8e2de8408cbaed9d70914c67b4c9f11397cb7 (patch) | |
tree | 47397eb7104b1408d27baa3631123ea1eb5d7828 | |
parent | 41dc1635878766e4a810e6a7c57637d079fced64 (diff) |
Print one log message per keypool top-up, not one per key.
-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 d8c1dd94fc..5db13ef02f 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; |