Browse Source

ExtractVoutDestination is only needed for timelocked utxos

pull/51/head
Duke Leto 5 years ago
parent
commit
82a21aacc0
  1. 7
      src/wallet/rpcwallet.cpp

7
src/wallet/rpcwallet.cpp

@ -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;

Loading…
Cancel
Save