mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-02 17:23:08 +02:00
[refactor] get wtxid from entry instead of vTxHashes
This commit is contained in:
@@ -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()));
|
||||
|
Reference in New Issue
Block a user