This commit is contained in:
jl777
2018-04-07 20:10:46 +03:00
parent 145d4d4eee
commit a4a40a38ad
2 changed files with 31 additions and 3 deletions

View File

@@ -745,7 +745,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block,uint32_t prevtim
uint32_t txtime,minutes; uint64_t value; CBlockIndex *previndex;
if ( prevtime == 0 )
{
if ( (previndex= mapBlockIndex[block.GetHash()]) != 0 )
if ( (previndex= mapBlockIndex[block.hashPrevBlock]) != 0 )
prevtime = (uint32_t)previndex->nTime;
}
txtime = komodo_txtime(&value,block.vtx[txn_count-1].vin[0].prevout.hash,block.vtx[txn_count-1].vin[0].prevout.n);