Skip to content

Commit 0753efd

Browse files
committed
rpc: Remove deprecated "size" from mempool txs
Remove the "size" property of a mempool transaction from RPC replies. Deprecated in e16b6a7 in 0.19, about 1 year ago.
1 parent 41fa292 commit 0753efd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/rpc/blockchain.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,6 @@ static UniValue getdifficulty(const JSONRPCRequest& request)
375375

376376
static std::vector<RPCResult> MempoolEntryDescription() { return {
377377
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."},
378-
RPCResult{RPCResult::Type::NUM, "size", "(DEPRECATED) same as vsize. Only returned if bitcoind is started with -deprecatedrpc=size\n"
379-
"size will be completely removed in v0.20."},
380378
RPCResult{RPCResult::Type::NUM, "weight", "transaction weight as defined in BIP 141."},
381379
RPCResult{RPCResult::Type::STR_AMOUNT, "fee", "transaction fee in " + CURRENCY_UNIT + " (DEPRECATED)"},
382380
RPCResult{RPCResult::Type::STR_AMOUNT, "modifiedfee", "transaction fee with fee deltas used for mining priority (DEPRECATED)"},
@@ -415,7 +413,6 @@ static void entryToJSON(const CTxMemPool& pool, UniValue& info, const CTxMemPool
415413
info.pushKV("fees", fees);
416414

417415
info.pushKV("vsize", (int)e.GetTxSize());
418-
if (IsDeprecatedRPCEnabled("size")) info.pushKV("size", (int)e.GetTxSize());
419416
info.pushKV("weight", (int)e.GetTxWeight());
420417
info.pushKV("fee", ValueFromAmount(e.GetFee()));
421418
info.pushKV("modifiedfee", ValueFromAmount(e.GetModifiedFee()));

0 commit comments

Comments
 (0)