Test
This commit is contained in:
@@ -3566,7 +3566,7 @@ CBlockIndex* AddToBlockIndex(const CBlockHeader& block)
|
|||||||
pindexBestHeader = pindexNew;
|
pindexBestHeader = pindexNew;
|
||||||
|
|
||||||
setDirtyBlockIndex.insert(pindexNew);
|
setDirtyBlockIndex.insert(pindexNew);
|
||||||
|
fprintf(stderr,"added to block index %s\n",hash.ToString().c_str());
|
||||||
return pindexNew;
|
return pindexNew;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4353,7 +4353,8 @@ CBlockIndex * InsertBlockIndex(uint256 hash)
|
|||||||
throw runtime_error("LoadBlockIndex(): new CBlockIndex failed");
|
throw runtime_error("LoadBlockIndex(): new CBlockIndex failed");
|
||||||
mi = mapBlockIndex.insert(make_pair(hash, pindexNew)).first;
|
mi = mapBlockIndex.insert(make_pair(hash, pindexNew)).first;
|
||||||
pindexNew->phashBlock = &((*mi).first);
|
pindexNew->phashBlock = &((*mi).first);
|
||||||
|
fprintf(stderr,"inserted to block index %s\n",hash.ToString().c_str());
|
||||||
|
|
||||||
return pindexNew;
|
return pindexNew;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user