Skip to content

Commit 49be7e1

Browse files
committed
[rpc] Remove priority information from mempool RPC calls
"startingpriority" and "currentpriority" are no longer returned in the JSON information about a mempool entry. This affects getmempoolancestors, getmempooldescendants, getmempooolentry, and getrawmempool.
1 parent 0315888 commit 49be7e1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/rpc/blockchain.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,6 @@ std::string EntryDescriptionString()
341341
" \"modifiedfee\" : n, (numeric) transaction fee with fee deltas used for mining priority\n"
342342
" \"time\" : n, (numeric) local time transaction entered pool in seconds since 1 Jan 1970 GMT\n"
343343
" \"height\" : n, (numeric) block height when transaction entered pool\n"
344-
" \"startingpriority\" : n, (numeric) DEPRECATED. Priority when transaction entered pool\n"
345-
" \"currentpriority\" : n, (numeric) DEPRECATED. Transaction priority now\n"
346344
" \"descendantcount\" : n, (numeric) number of in-mempool descendant transactions (including this one)\n"
347345
" \"descendantsize\" : n, (numeric) virtual transaction size of in-mempool descendants (including this one)\n"
348346
" \"descendantfees\" : n, (numeric) modified fees (see above) of in-mempool descendants (including this one)\n"
@@ -363,8 +361,6 @@ void entryToJSON(UniValue &info, const CTxMemPoolEntry &e)
363361
info.push_back(Pair("modifiedfee", ValueFromAmount(e.GetModifiedFee())));
364362
info.push_back(Pair("time", e.GetTime()));
365363
info.push_back(Pair("height", (int)e.GetHeight()));
366-
info.push_back(Pair("startingpriority", e.GetPriority(e.GetHeight())));
367-
info.push_back(Pair("currentpriority", e.GetPriority(chainActive.Height())));
368364
info.push_back(Pair("descendantcount", e.GetCountWithDescendants()));
369365
info.push_back(Pair("descendantsize", e.GetSizeWithDescendants()));
370366
info.push_back(Pair("descendantfees", e.GetModFeesWithDescendants()));

0 commit comments

Comments
 (0)