Skip to content

Commit dd6e0d6

Browse files
committed
Merge #9833: Trivial: fix comments referencing AppInit2
ef9f495 Trivial: fix comments referencing AppInit2 (Marko Bencun)
2 parents 00285ce + ef9f495 commit dd6e0d6

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

src/init.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat";
118118
// threads that should only be stopped after the main network-processing
119119
// threads have exited.
120120
//
121-
// Note that if running -daemon the parent process returns from AppInit2
122-
// before adding any threads to the threadGroup, so .join_all() returns
123-
// immediately and the parent exits from main().
124-
//
125121
// Shutdown for Qt is very similar, only it uses a QTimer to detect
126122
// fRequestShutdown getting set, and then does the normal Qt
127123
// shutdown thing.
@@ -188,7 +184,7 @@ void Shutdown()
188184
if (!lockShutdown)
189185
return;
190186

191-
/// Note: Shutdown() must be able to handle cases in which AppInit2() failed part of the way,
187+
/// Note: Shutdown() must be able to handle cases in which initialization failed part of the way,
192188
/// for example if the data directory was found to be locked.
193189
/// Be sure that anything that writes files or flushes caches only does this if the respective
194190
/// module was initialized.

src/qt/bitcoin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ void BitcoinCore::initialize()
268268
{
269269
try
270270
{
271-
qDebug() << __func__ << ": Running AppInit2 in thread";
271+
qDebug() << __func__ << ": Running initialization in thread";
272272
if (!AppInitBasicSetup())
273273
{
274274
Q_EMIT initializeResult(false);
@@ -457,7 +457,7 @@ void BitcoinApplication::initializeResult(int retval)
457457
returnValue = retval ? 0 : 1;
458458
if(retval)
459459
{
460-
// Log this only after AppInit2 finishes, as then logging setup is guaranteed complete
460+
// Log this only after AppInitMain finishes, as then logging setup is guaranteed complete
461461
qWarning() << "Platform customization:" << platformStyle->getName();
462462
#ifdef ENABLE_WALLET
463463
PaymentServer::LoadRootCAs();

src/script/sigcache.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ class CSignatureCache
9090
static CSignatureCache signatureCache;
9191
}
9292

93-
// To be called once in AppInit2/TestingSetup to initialize the signatureCache
93+
// To be called once in AppInitMain/BasicTestingSetup to initialize the
94+
// signatureCache.
9495
void InitSignatureCache()
9596
{
9697
// nMaxCacheSize is unsigned. If -maxsigcachesize is set to zero,

0 commit comments

Comments
 (0)