mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-19 18:39:10 +01: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("descendantsize", e.GetSizeWithDescendants());
|
||||||
info.pushKV("ancestorcount", e.GetCountWithAncestors());
|
info.pushKV("ancestorcount", e.GetCountWithAncestors());
|
||||||
info.pushKV("ancestorsize", e.GetSizeWithAncestors());
|
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);
|
UniValue fees(UniValue::VOBJ);
|
||||||
fees.pushKV("base", ValueFromAmount(e.GetFee()));
|
fees.pushKV("base", ValueFromAmount(e.GetFee()));
|
||||||
|
|||||||
Reference in New Issue
Block a user