message: Remove busy-wait for cs_main lock
diff: @@ -4228,12 +4228,8 @@ bool ProcessNewBlock(CValidationState& state, CNode* pfrom, CBlock* pblock, CDis
  }
  }
  - while (true) {
  - TRY_LOCK(cs_main, lockMain);
  - if (!lockMain) {
  - MilliSleep(50);
  - continue;
  - }
  + {
  + LOCK(cs_main); // Replaces the former TRY_LOCK loop because busy waiting wastes too much resources
  MarkBlockAsReceived (pblock->GetHash ());
  if (!checked) {
  @@ -4249,7 +4245,6 @@ bool ProcessNewBlock(CValidationState& state, CNode* pfrom, CBlock* pblock, CDis
  CheckBlockIndex ();
  if (!ret)
  return error ("%s : AcceptBlock FAILED", __func__);
  - break;
  }
  if (!ActivateBestChain(state, pblock))
  