message: Fix slow reindexing
diff: @@ -78,10 +78,18 @@ void AutoMintModel::checkAutoMint()
  // if lelantus is not allow or client is in initial syncing state then wait
  // except user force to check
  bool force = this->force;
  +
  + if (!force) {
  + // check initialSync first to reduce main locking
  + if (initialSync) {
  + return;
  + }
  +
  bool allowed = lelantus::IsLelantusAllowed();
  - if (!force && (!allowed || initialSync)) {
  + if (!allowed) {
  return;
  }
  + }
  {
  LOCK(lelantusModel->cs);
  