message: Always set the fIsInitialBlockDownload to true before startup
  Otherwise we may accidentally trigger the auto dbcache resize
  before initial sync is acually complete. This could happen for instance
  when an operator has stopped their node and restarted before initial
  sync was completed or perhaps re-started their node after many months
  of downtime.
diff: @@ -57,8 +57,14 @@ boost::thread_specific_ptr<LockStack> lockstack;
  #endif
  -std::atomic<bool> fIsInitialBlockDownload{false};
  -std::atomic<bool> fRescan{false}; // this flag is set to true when a wallet rescan has been invoked.
  +// We always start with true so that when ActivateBestChain is called during the startup (init.cpp)
  +// and we havn't finished initial sync then we don't accidentally trigger the auto-dbcache
  +// resize. After ActivateBestChain the fIsInitialBlockDownload flag is set to true or false depending
  +// on whether we really have finished sync or not.
  +std::atomic<bool> fIsInitialBlockDownload{true};
  +
  +// this flag is set to true when a wallet rescan has been invoked.
  +std::atomic<bool> fRescan{false};
  CStatusString statusStrings;
  // main.cpp CriticalSections:
  