This commit is contained in:
jl777
2016-11-15 07:47:14 -03:00
parent a547ea39b6
commit a130c5cb66
6 changed files with 24 additions and 5 deletions

View File

@@ -577,6 +577,7 @@ Value gettxout(const Array& params, bool fHelp)
CBlockIndex *pblockindex = chainActive[coins.nHeight];
uint64_t interest; uint32_t timestamp=0;
if ( pblockindex != 0 )
timestamp = pblockindex->nTime; // this is approx, but cant figure out how to get tx here
interest = komodo_interest(coins.nHeight,coins.vout[n].nValue,timestamp,pindex->nTime);