Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 492 Lines • ▼ Show 20 Lines | if (IsDeprecatedRPCEnabled(gArgs, "mempool_ancestors_descendants")) { | ||||
"", | "", | ||||
{ | { | ||||
RPCResult{RPCResult::Type::STR_AMOUNT, "base", | RPCResult{RPCResult::Type::STR_AMOUNT, "base", | ||||
"transaction fee in " + ticker}, | "transaction fee in " + ticker}, | ||||
RPCResult{RPCResult::Type::STR_AMOUNT, "modified", | RPCResult{RPCResult::Type::STR_AMOUNT, "modified", | ||||
"transaction fee with fee deltas used for " | "transaction fee with fee deltas used for " | ||||
"mining priority in " + | "mining priority in " + | ||||
ticker}, | ticker}, | ||||
RPCResult{ | |||||
RPCResult::Type::STR_AMOUNT, "ancestor", | |||||
"DEPRECATED: modified fees (see above) of in-mempool " | |||||
"ancestors (including this one) in " + | |||||
ticker + | |||||
". Only displayed if the " | |||||
"-deprecatedrpc=mempool_ancestors_descendants " | |||||
"option is set"}, | |||||
RPCResult{ | |||||
RPCResult::Type::STR_AMOUNT, "descendant", | |||||
"DEPRECATED: modified fees (see above) of in-mempool " | |||||
"descendants (including this one) in " + | |||||
ticker + | |||||
". Only displayed if the " | |||||
"-deprecatedrpc=mempool_ancestors_descendants " | |||||
"option is set"}, | |||||
}}, | }}, | ||||
RPCResult{ | RPCResult{ | ||||
RPCResult::Type::ARR, | RPCResult::Type::ARR, | ||||
"depends", | "depends", | ||||
"unconfirmed transactions used as inputs for this transaction", | "unconfirmed transactions used as inputs for this transaction", | ||||
{RPCResult{RPCResult::Type::STR_HEX, "transactionid", | {RPCResult{RPCResult::Type::STR_HEX, "transactionid", | ||||
"parent transaction id"}}}, | "parent transaction id"}}}, | ||||
RPCResult{RPCResult::Type::ARR, | RPCResult{RPCResult::Type::ARR, | ||||
▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | static void entryToJSON(const CTxMemPool &pool, UniValue &info, | ||||
AssertLockHeld(pool.cs); | AssertLockHeld(pool.cs); | ||||
const bool deprecated_ancestors_descendants = | const bool deprecated_ancestors_descendants = | ||||
IsDeprecatedRPCEnabled(gArgs, "mempool_ancestors_descendants"); | IsDeprecatedRPCEnabled(gArgs, "mempool_ancestors_descendants"); | ||||
UniValue fees(UniValue::VOBJ); | UniValue fees(UniValue::VOBJ); | ||||
fees.pushKV("base", e.GetFee()); | fees.pushKV("base", e.GetFee()); | ||||
fees.pushKV("modified", e.GetModifiedFee()); | fees.pushKV("modified", e.GetModifiedFee()); | ||||
if (deprecated_ancestors_descendants) { | |||||
fees.pushKV("ancestor", e.GetModFeesWithAncestors()); | |||||
fees.pushKV("descendant", e.GetModFeesWithDescendants()); | |||||
} | |||||
info.pushKV("fees", fees); | info.pushKV("fees", fees); | ||||
info.pushKV("size", (int)e.GetTxSize()); | info.pushKV("size", (int)e.GetTxSize()); | ||||
info.pushKV("time", count_seconds(e.GetTime())); | info.pushKV("time", count_seconds(e.GetTime())); | ||||
info.pushKV("height", (int)e.GetHeight()); | info.pushKV("height", (int)e.GetHeight()); | ||||
if (deprecated_ancestors_descendants) { | if (deprecated_ancestors_descendants) { | ||||
info.pushKV("descendantcount", e.GetCountWithDescendants()); | info.pushKV("descendantcount", e.GetCountWithDescendants()); | ||||
info.pushKV("descendantsize", e.GetSizeWithDescendants()); | info.pushKV("descendantsize", e.GetSizeWithDescendants()); | ||||
▲ Show 20 Lines • Show All 2,762 Lines • Show Last 20 Lines |