From e8c659a2970ec8855de3e1dbf91c6b614b8e5644 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Wed, 26 Jan 2022 08:58:53 -0300 Subject: [PATCH] wallet: add wtxid in WalletTxToJSON --- src/wallet/rpc/transactions.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/rpc/transactions.cpp b/src/wallet/rpc/transactions.cpp index eef2c13ee1d..28baa680f27 100644 --- a/src/wallet/rpc/transactions.cpp +++ b/src/wallet/rpc/transactions.cpp @@ -34,6 +34,7 @@ static void WalletTxToJSON(const CWallet& wallet, const CWalletTx& wtx, UniValue } uint256 hash = wtx.GetHash(); entry.pushKV("txid", hash.GetHex()); + entry.pushKV("wtxid", wtx.GetWitnessHash().GetHex()); UniValue conflicts(UniValue::VARR); for (const uint256& conflict : wallet.GetTxConflicts(wtx)) conflicts.push_back(conflict.GetHex());