|
|
@ -1151,7 +1151,11 @@ UniValue gettxout(const UniValue& params, bool fHelp) |
|
|
|
ret.push_back(Pair("bestblock", pindex->GetBlockHash().GetHex())); |
|
|
|
if ((unsigned int)coins.nHeight == MEMPOOL_HEIGHT) |
|
|
|
ret.push_back(Pair("confirmations", 0)); |
|
|
|
else ret.push_back(Pair("confirmations", komodo_dpowconfs(coins.nHeight,pindex->nHeight - coins.nHeight + 1))); |
|
|
|
else |
|
|
|
{ |
|
|
|
ret.push_back(Pair("confirmations", komodo_dpowconfs(coins.nHeight,pindex->nHeight - coins.nHeight + 1))); |
|
|
|
ret.push_back(Pair("rawconfirmations", pindex->nHeight - coins.nHeight + 1)); |
|
|
|
} |
|
|
|
ret.push_back(Pair("value", ValueFromAmount(coins.vout[n].nValue))); |
|
|
|
uint64_t interest; int32_t txheight; uint32_t locktime; |
|
|
|
if ( (interest= komodo_accrued_interest(&txheight,&locktime,hash,n,coins.nHeight,coins.vout[n].nValue,(int32_t)pindex->nHeight)) != 0 ) |
|
|
|