This commit is contained in:
jl777
2018-10-14 12:00:58 -11:00
parent 956a638a60
commit 20523c958c

View File

@@ -2734,7 +2734,7 @@ UniValue listunspent(const UniValue& params, bool fHelp)
//fprintf(stderr,"nValue %.8f pindex.%p tipindex.%p locktime.%u txheight.%d pindexht.%d\n",(double)nValue/COIN,pindex,chainActive.LastTip(),locktime,txheight,pindex->nHeight);
}
else if ( chainActive.LastTip() != 0 )
txheight = (tipchainActive.LastTip()->nHeight - out.nDepth - 1);
txheight = (chainActive.LastTip()->nHeight - out.nDepth - 1);
entry.push_back(Pair("origconfirmations",out.nDepth));
entry.push_back(Pair("confirmations",komodo_dpowconfs(txheight,out.nDepth)));
entry.push_back(Pair("spendable", out.fSpendable));