Skip to content

Commit 8ef3cc9

Browse files
Marko Bencunfurszy
authored andcommitted
Trivial: fix comments referencing AppInit2
It was refactored into multiple functions in 0cc8b6b.
1 parent f21b122 commit 8ef3cc9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/init.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,6 @@ CClientUIInterface uiInterface;
127127
// threads that should only be stopped after the main network-processing
128128
// threads have exited.
129129
//
130-
// Note that if running -daemon the parent process returns from AppInit2
131-
// before adding any threads to the threadGroup, so .join_all() returns
132-
// immediately and the parent exits from main().
133-
//
134130
// Shutdown for Qt is very similar, only it uses a QTimer to detect
135131
// fRequestShutdown getting set, and then does the normal Qt
136132
// shutdown thing.
@@ -194,7 +190,7 @@ void PrepareShutdown()
194190
if (!lockShutdown)
195191
return;
196192

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

src/script/sigcache.cpp

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

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

0 commit comments

Comments
 (0)