ExtractVoutDestination is only needed for timelocked utxos

This commit is contained in:
Duke Leto
2019-12-12 23:30:27 -05:00
parent 208fb4a74d
commit 82a21aacc0

View File

@@ -1882,10 +1882,7 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
entry.push_back(Pair("account", account));
CTxDestination dest;
if (CScriptExt::ExtractVoutDestination(wtx, r.vout, dest))
MaybePushAddress(entry, dest);
else
MaybePushAddress(entry, r.destination);
MaybePushAddress(entry, r.destination);
if (bIsCoinbase)
{
@@ -4114,7 +4111,7 @@ UniValue z_gettotalbalance(const UniValue& params, bool fHelp, const CPubKey& my
return result;
}
UniValue z_viewtransaction(const UniValue& params, bool fHelp)
UniValue z_viewtransaction(const UniValue& params, bool fHelp, const CPubKey& mypk)
{
if (!EnsureWalletIsAvailable(fHelp))
return NullUniValue;