aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpc/transactions.cpp
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-01-26 08:58:53 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-02-01 08:44:51 -0300
commite8c659a2970ec8855de3e1dbf91c6b614b8e5644 (patch)
tree988c0165cc9c87535e3c26cc6b978ecde032021a /src/wallet/rpc/transactions.cpp
parent7482b6f89500d9783cc6af0dccab7a08d0128206 (diff)
downloadbitcoin-e8c659a2970ec8855de3e1dbf91c6b614b8e5644.tar.xz
wallet: add wtxid in WalletTxToJSON
Diffstat (limited to 'src/wallet/rpc/transactions.cpp')
-rw-r--r--src/wallet/rpc/transactions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/rpc/transactions.cpp b/src/wallet/rpc/transactions.cpp
index eef2c13ee1..28baa680f2 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());