aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2023-08-25 15:15:10 +0100
committerTheCharlatan <seb.kung@gmail.com>2023-11-10 16:44:30 +0100
commitfad61aa56189f98d97af1d6f70c4eb46b8f98bf0 (patch)
tree256d39f5c8529033e53fb7a77d5fcc5fc89ee806 /src
parent9cd8cafb77563243af19c95e396c2fb4fc3758df (diff)
downloadbitcoin-fad61aa56189f98d97af1d6f70c4eb46b8f98bf0.tar.xz
[refactor] get wtxid from entry instead of vTxHashes
Diffstat (limited to 'src')
-rw-r--r--src/rpc/mempool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp
index 43691b7a09..a97bf0b112 100644
--- a/src/rpc/mempool.cpp
+++ b/src/rpc/mempool.cpp
@@ -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()));