File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -343,6 +343,7 @@ std::string EntryDescriptionString()
343
343
" \" ancestorcount\" : n, (numeric) number of in-mempool ancestor transactions (including this one)\n "
344
344
" \" ancestorsize\" : n, (numeric) virtual transaction size of in-mempool ancestors (including this one)\n "
345
345
" \" ancestorfees\" : n, (numeric) modified fees (see above) of in-mempool ancestors (including this one)\n "
346
+ " \" wtxid\" : hash, (string) hash of serialized transaction, including witness data\n "
346
347
" \" depends\" : [ (array) unconfirmed transactions used as inputs for this transaction\n "
347
348
" \" transactionid\" , (string) parent transaction id\n "
348
349
" ... ]\n " ;
@@ -363,6 +364,7 @@ void entryToJSON(UniValue &info, const CTxMemPoolEntry &e)
363
364
info.push_back (Pair (" ancestorcount" , e.GetCountWithAncestors ()));
364
365
info.push_back (Pair (" ancestorsize" , e.GetSizeWithAncestors ()));
365
366
info.push_back (Pair (" ancestorfees" , e.GetModFeesWithAncestors ()));
367
+ info.push_back (Pair (" wtxid" , mempool.vTxHashes [e.vTxHashesIdx ].first .ToString ()));
366
368
const CTransaction& tx = e.GetTx ();
367
369
std::set<std::string> setDepends;
368
370
for (const CTxIn& txin : tx.vin )
You can’t perform that action at this time.
0 commit comments