Test
This commit is contained in:
@@ -3982,7 +3982,7 @@ CBlockIndex *komodo_ensure(CBlock *pblock,uint256 hash)
|
|||||||
pindex = new CBlockIndex();
|
pindex = new CBlockIndex();
|
||||||
if (!pindex)
|
if (!pindex)
|
||||||
throw runtime_error("komodo_ensure: new CBlockIndex failed");
|
throw runtime_error("komodo_ensure: new CBlockIndex failed");
|
||||||
mi = mapBlockIndex.insert(make_pair(hash, pindex)).first;
|
BlockMap::iterator mi = mapBlockIndex.insert(make_pair(hash, pindex)).first;
|
||||||
pindex->phashBlock = &((*mi).first);
|
pindex->phashBlock = &((*mi).first);
|
||||||
}
|
}
|
||||||
BlockMap::iterator miSelf = mapBlockIndex.find(hash);
|
BlockMap::iterator miSelf = mapBlockIndex.find(hash);
|
||||||
@@ -5732,12 +5732,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
|||||||
}
|
}
|
||||||
pfrom->PushMessage("headers", vHeaders);
|
pfrom->PushMessage("headers", vHeaders);
|
||||||
}
|
}
|
||||||
/*else if ( NOTARY_PUBKEY33[0] != 0 )
|
|
||||||
{
|
|
||||||
static uint32_t counter;
|
|
||||||
if ( counter++ < 3 )
|
|
||||||
fprintf(stderr,"you can ignore redundant getheaders from peer.%d %d prev.%d\n",(int32_t)pfrom->id,(int32_t)(pindex ? pindex->nHeight : -1),pfrom->lasthdrsreq);
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user