Clarify comment

This commit is contained in:
Sean Bowe 2020-02-27 17:57:59 -07:00
parent b79edf1b55
commit e597ad842a
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 4 additions and 2 deletions

View File

@ -1547,8 +1547,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
// Start the thread that notifies listeners of transactions that have been
// recently added to the mempool, or have been added to or removed from the
// chain.
// chain. We perform this before step 10 (import blocks) so that the
// original value of chainActive.Tip(), which corresponds with the wallet's
// view of the chaintip, is passed to ThreadNotifyWallets before the chain
// tip changes again.
boost::function<void()> threadnotifywallets = boost::bind(&ThreadNotifyWallets, chainActive.Tip());
threadGroup.create_thread(
boost::bind(&TraceThread<boost::function<void()>>, "txnotify", threadnotifywallets)