This commit is contained in:
jl777
2018-04-13 16:03:45 +03:00
parent ce363f878e
commit 141950a496
2 changed files with 39 additions and 17 deletions

View File

@@ -4091,6 +4091,8 @@ CBlockIndex * InsertBlockIndex(uint256 hash)
return pindexNew;
}
void komodo_pindex_init(CBlockIndex *pindex);
bool static LoadBlockIndexDB()
{
const CChainParams& chainparams = Params();
@@ -4106,6 +4108,9 @@ bool static LoadBlockIndexDB()
{
CBlockIndex* pindex = item.second;
vSortedByHeight.push_back(make_pair(pindex->nHeight, pindex));
if ( pindex->nHeight >= 0 )
komodo_pindex_init(pindex);
else pindex->notaryid = -1;
}
sort(vSortedByHeight.begin(), vSortedByHeight.end());
BOOST_FOREACH(const PAIRTYPE(int, CBlockIndex*)& item, vSortedByHeight)