add -ac_ccactivateht=. Fix oracles timestamp activation, to stop loading block from disk for no reason.

This commit is contained in:
blackjok3r
2019-06-10 23:30:13 +08:00
parent ce6acf0d00
commit fd23e3a914
6 changed files with 41 additions and 11 deletions

View File

@@ -642,11 +642,7 @@ int32_t GetLatestTimestamp(int32_t height)
blockHash = chainActive[height]->GetBlockHash();
pindex = mapBlockIndex[blockHash];
if ( komodo_blockload(block,pindex) == 0 )
{
return(block.nTime);
}
return(0);
return(pindex->nTime);
}
bool OraclesValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx, uint32_t nIn)
@@ -1208,4 +1204,3 @@ UniValue OraclesList()
}
return(result);
}