This commit is contained in:
jl777
2018-04-20 12:14:11 +03:00
parent 5295318ec4
commit 0f102ea7e3

View File

@@ -4147,11 +4147,11 @@ bool ProcessNewBlock(bool from_miner,int32_t height,CValidationState &state, CNo
} }
// Store to disk // Store to disk
CBlockIndex *pindex = NULL; CBlockIndex *pindex = NULL;
/*if ( ASSETCHAINS_STAKED != 0 ) // or other low node count networks if ( ASSETCHAINS_STAKED != 0 ) // or other low node count networks
{ {
//komodo_ensure(pblock->hashPrevBlock); //komodo_ensure(pblock->hashPrevBlock);
komodo_ensure(pblock,hash); komodo_ensure(pblock,hash);
}*/ }
bool ret = AcceptBlock(*pblock, state, &pindex, fRequested, dbp); bool ret = AcceptBlock(*pblock, state, &pindex, fRequested, dbp);
if (pindex && pfrom) { if (pindex && pfrom) {
mapBlockSource[pindex->GetBlockHash()] = pfrom->GetId(); mapBlockSource[pindex->GetBlockHash()] = pfrom->GetId();