Skip to content

Commit

Permalink
[rpc] Remove priority information from mempool RPC calls
Browse files Browse the repository at this point in the history
"startingpriority" and "currentpriority" are no longer returned in the
JSON information about a mempool entry.  This affects
getmempoolancestors, getmempooldescendants, getmempooolentry, and
getrawmempool.
  • Loading branch information
morcos authored and random-zebra committed Jul 8, 2021
1 parent 3b4d207 commit cd1535a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/rpc/blockchain.cpp
Expand Up @@ -400,8 +400,6 @@ static std::string EntryDescriptionString()
" \"modifiedfee\" : n, (numeric) transaction fee with fee deltas used for mining priority\n"
" \"time\" : n, (numeric) local time transaction entered pool in seconds since 1 Jan 1970 GMT\n"
" \"height\" : n, (numeric) block height when transaction entered pool\n"
" \"startingpriority\" : n, (numeric) DEPRECATED. priority when transaction entered pool\n"
" \"currentpriority\" : n, (numeric) DEPRECATED. transaction priority now\n"
" \"descendantcount\" : n, (numeric) number of in-mempool descendant transactions (including this one)\n"
" \"descendantsize\" : n, (numeric) size of in-mempool descendants (including this one)\n"
" \"descendantfees\" : n, (numeric) modified fees (see above) of in-mempool descendants (including this one)\n"
Expand All @@ -419,8 +417,6 @@ static void entryToJSON(UniValue &info, const CTxMemPoolEntry &e)
info.pushKV("modifiedfee", ValueFromAmount(e.GetModifiedFee()));
info.pushKV("time", e.GetTime());
info.pushKV("height", (int)e.GetHeight());
info.pushKV("startingpriority", e.GetPriority(e.GetHeight()));
info.pushKV("currentpriority", e.GetPriority(chainActive.Height()));
info.pushKV("descendantcount", e.GetCountWithDescendants());
info.pushKV("descendantsize", e.GetSizeWithDescendants());
info.pushKV("descendantfees", e.GetModFeesWithDescendants());
Expand Down

0 comments on commit cd1535a

Please sign in to comment.