diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 2a7f7d1f3..22aecf320 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -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));