Skip to content

Commit fad61aa

Browse files
glozowTheCharlatan
authored andcommitted
[refactor] get wtxid from entry instead of vTxHashes
1 parent 9cd8caf commit fad61aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/mempool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ static void entryToJSON(const CTxMemPool& pool, UniValue& info, const CTxMemPool
289289
info.pushKV("descendantsize", e.GetSizeWithDescendants());
290290
info.pushKV("ancestorcount", e.GetCountWithAncestors());
291291
info.pushKV("ancestorsize", e.GetSizeWithAncestors());
292-
info.pushKV("wtxid", pool.vTxHashes[e.vTxHashesIdx].first.ToString());
292+
info.pushKV("wtxid", e.GetTx().GetWitnessHash().ToString());
293293

294294
UniValue fees(UniValue::VOBJ);
295295
fees.pushKV("base", ValueFromAmount(e.GetFee()));

0 commit comments

Comments
 (0)