Skip to content

Commit e8c659a

Browse files
committed
wallet: add wtxid in WalletTxToJSON
1 parent 7482b6f commit e8c659a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wallet/rpc/transactions.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ static void WalletTxToJSON(const CWallet& wallet, const CWalletTx& wtx, UniValue
3434
}
3535
uint256 hash = wtx.GetHash();
3636
entry.pushKV("txid", hash.GetHex());
37+
entry.pushKV("wtxid", wtx.GetWitnessHash().GetHex());
3738
UniValue conflicts(UniValue::VARR);
3839
for (const uint256& conflict : wallet.GetTxConflicts(wtx))
3940
conflicts.push_back(conflict.GetHex());

0 commit comments

Comments
 (0)