@@ -229,23 +229,12 @@ static std::vector<RPCResult> MempoolEntryDescription()
229
229
return {
230
230
RPCResult{RPCResult::Type::NUM, " vsize" , " virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted." },
231
231
RPCResult{RPCResult::Type::NUM, " weight" , " transaction weight as defined in BIP 141." },
232
- RPCResult{RPCResult::Type::STR_AMOUNT, " fee" , /* optional=*/ true ,
233
- " transaction fee, denominated in " + CURRENCY_UNIT + " (DEPRECATED, returned only if config option -deprecatedrpc=fees is passed)" },
234
- RPCResult{RPCResult::Type::STR_AMOUNT, " modifiedfee" , /* optional=*/ true ,
235
- " transaction fee with fee deltas used for mining priority, denominated in " + CURRENCY_UNIT +
236
- " (DEPRECATED, returned only if config option -deprecatedrpc=fees is passed)" },
237
232
RPCResult{RPCResult::Type::NUM_TIME, " time" , " local time transaction entered pool in seconds since 1 Jan 1970 GMT" },
238
233
RPCResult{RPCResult::Type::NUM, " height" , " block height when transaction entered pool" },
239
234
RPCResult{RPCResult::Type::NUM, " descendantcount" , " number of in-mempool descendant transactions (including this one)" },
240
235
RPCResult{RPCResult::Type::NUM, " descendantsize" , " virtual transaction size of in-mempool descendants (including this one)" },
241
- RPCResult{RPCResult::Type::STR_AMOUNT, " descendantfees" , /* optional=*/ true ,
242
- " transaction fees of in-mempool descendants (including this one) with fee deltas used for mining priority, denominated in " +
243
- CURRENCY_ATOM + " s (DEPRECATED, returned only if config option -deprecatedrpc=fees is passed)" },
244
236
RPCResult{RPCResult::Type::NUM, " ancestorcount" , " number of in-mempool ancestor transactions (including this one)" },
245
237
RPCResult{RPCResult::Type::NUM, " ancestorsize" , " virtual transaction size of in-mempool ancestors (including this one)" },
246
- RPCResult{RPCResult::Type::STR_AMOUNT, " ancestorfees" , /* optional=*/ true ,
247
- " transaction fees of in-mempool ancestors (including this one) with fee deltas used for mining priority, denominated in " +
248
- CURRENCY_ATOM + " s (DEPRECATED, returned only if config option -deprecatedrpc=fees is passed)" },
249
238
RPCResult{RPCResult::Type::STR_HEX, " wtxid" , " hash of serialized transaction, including witness data" },
250
239
RPCResult{RPCResult::Type::OBJ, " fees" , " " ,
251
240
{
@@ -269,24 +258,12 @@ static void entryToJSON(const CTxMemPool& pool, UniValue& info, const CTxMemPool
269
258
270
259
info.pushKV (" vsize" , (int )e.GetTxSize ());
271
260
info.pushKV (" weight" , (int )e.GetTxWeight ());
272
- // TODO: top-level fee fields are deprecated. deprecated_fee_fields_enabled blocks should be removed in v24
273
- const bool deprecated_fee_fields_enabled{IsDeprecatedRPCEnabled (" fees" )};
274
- if (deprecated_fee_fields_enabled) {
275
- info.pushKV (" fee" , ValueFromAmount (e.GetFee ()));
276
- info.pushKV (" modifiedfee" , ValueFromAmount (e.GetModifiedFee ()));
277
- }
278
261
info.pushKV (" time" , count_seconds (e.GetTime ()));
279
262
info.pushKV (" height" , (int )e.GetHeight ());
280
263
info.pushKV (" descendantcount" , e.GetCountWithDescendants ());
281
264
info.pushKV (" descendantsize" , e.GetSizeWithDescendants ());
282
- if (deprecated_fee_fields_enabled) {
283
- info.pushKV (" descendantfees" , e.GetModFeesWithDescendants ());
284
- }
285
265
info.pushKV (" ancestorcount" , e.GetCountWithAncestors ());
286
266
info.pushKV (" ancestorsize" , e.GetSizeWithAncestors ());
287
- if (deprecated_fee_fields_enabled) {
288
- info.pushKV (" ancestorfees" , e.GetModFeesWithAncestors ());
289
- }
290
267
info.pushKV (" wtxid" , pool.vTxHashes [e.vTxHashesIdx ].first .ToString ());
291
268
292
269
UniValue fees (UniValue::VOBJ);
0 commit comments