This commit is contained in:
jl777
2018-04-07 18:53:54 +03:00
parent ea1244288b
commit ce5dd5473e
8 changed files with 22 additions and 22 deletions

View File

@@ -557,10 +557,11 @@ uint64_t komodo_seed(int32_t height)
return(seed);
}
uint32_t komodo_txtime(uint256 hash)
uint32_t komodo_txtime(uint64_t *valuep,uint256 hash,int32_t n)
{
CTransaction tx;
uint256 hashBlock;
*valuep = 0;
if (!GetTransaction(hash, tx,
#ifndef KOMODO_ZCASH
Params().GetConsensus(),
@@ -568,6 +569,8 @@ uint32_t komodo_txtime(uint256 hash)
hashBlock, true))
{
//printf("null GetTransaction\n");
if ( n < tx.vout.size() )
*valuep = tx.vout[n].nValue;
return(tx.nLockTime);
}
return(0);