Print one log message per keypool top-up, not one per key.

This commit is contained in:
Gregory Maxwell 2017-07-17 08:16:36 +00:00
parent 41dc163587
commit b0e8e2de84

View File

@ -3213,7 +3213,9 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize)
} else { } else {
setExternalKeyPool.insert(nEnd); 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; return true;