[refactor] get wtxid from entry instead of vTxHashes

This commit is contained in:
glozow authored and TheCharlatan committed 2023-11-10 16:44:30 +01:00
1 parent 9cd8cafb77
commit fad61aa561
1 file changed
+1 -1
+1 -1
View File
@@ -289,7 +289,7 @@ static void entryToJSON(const CTxMemPool& pool, UniValue& info, const CTxMemPool
info.pushKV("descendantsize", e.GetSizeWithDescendants());
info.pushKV("ancestorcount", e.GetCountWithAncestors());
info.pushKV("ancestorsize", e.GetSizeWithAncestors());
info.pushKV("wtxid", pool.vTxHashes[e.vTxHashesIdx].first.ToString());
info.pushKV("wtxid", e.GetTx().GetWitnessHash().ToString());
UniValue fees(UniValue::VOBJ);
fees.pushKV("base", ValueFromAmount(e.GetFee()));