5776 | @@ -5776,19 +5777,23 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
5777 | connman.PushMessage(pfrom, NetMsgType::GETHEADERS, chainActive.GetLocator(pindexBestHeader), uint256());
5778 | return true;
5779 | }
5780 | + }
5781 |
5782 | CBlockIndex *pindex = NULL;
5783 | CValidationState state;
5784 | - if (!AcceptBlockHeader(cmpctblock.header, state, chainparams, &pindex)) {
5785 | + if (!ProcessNewBlockHeaders({cmpctblock.header}, state, chainparams, &pindex)) { // We should call this without cs_main