fix oracles crash?
This commit is contained in:
@@ -638,11 +638,7 @@ bool OraclesDataValidate(struct CCcontract_info *cp,Eval* eval,const CTransactio
|
|||||||
|
|
||||||
int32_t GetLatestTimestamp(int32_t height)
|
int32_t GetLatestTimestamp(int32_t height)
|
||||||
{
|
{
|
||||||
uint256 blockHash; CBlock block; CBlockIndex* pindex;
|
return(komodo_heightstamp(height));
|
||||||
|
|
||||||
blockHash = chainActive[height]->GetBlockHash();
|
|
||||||
pindex = mapBlockIndex[blockHash];
|
|
||||||
return(pindex->nTime);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OraclesValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx, uint32_t nIn)
|
bool OraclesValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx, uint32_t nIn)
|
||||||
|
|||||||
Reference in New Issue
Block a user