wallet: add wtxid in WalletTxToJSON

This commit is contained in:
brunoerg committed 2022-02-01 08:44:51 -03:00
1 parent 7482b6f895
commit e8c659a297
1 file changed
+1
+1
View File
@@ -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());