diff options
author | brunoerg <brunoely.gc@gmail.com> | 2022-01-26 08:58:53 -0300 |
---|---|---|
committer | brunoerg <brunoely.gc@gmail.com> | 2022-02-01 08:44:51 -0300 |
commit | e8c659a2970ec8855de3e1dbf91c6b614b8e5644 (patch) | |
tree | 988c0165cc9c87535e3c26cc6b978ecde032021a /src/wallet/rpc | |
parent | 7482b6f89500d9783cc6af0dccab7a08d0128206 (diff) | |
download | bitcoin-e8c659a2970ec8855de3e1dbf91c6b614b8e5644.tar.xz |
wallet: add wtxid in WalletTxToJSON
Diffstat (limited to 'src/wallet/rpc')
-rw-r--r-- | src/wallet/rpc/transactions.cpp | 1 |
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()); |