| 513 | } |
| 514 | |
| 515 | static std::vector<RPCResult> MempoolEntryDescription() { return { |
| 516 | 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."}, |
| 517 | RPCResult{RPCResult::Type::NUM, "weight", "transaction weight as defined in BIP 141."}, |
| 518 | RPCResult{RPCResult::Type::STR_AMOUNT, "fee", /*optional=*/true, |
| 519 | "transaction fee, denominated in " + CURRENCY_UNIT + " (DEPRECATED, returned only if config option -deprecatedrpc=fees is passed)"}, |
| 520 | RPCResult{RPCResult::Type::STR_AMOUNT, "modifiedfee", /*optional=*/true, |
| 521 | "transaction fee with fee deltas used for mining priority, denominated in " + CURRENCY_UNIT + |
| 522 | " (DEPRECATED, returned only if config option -deprecatedrpc=fees is passed)"}, |
| 523 | RPCResult{RPCResult::Type::NUM_TIME, "time", "local time transaction entered pool in seconds since 1 Jan 1970 GMT"}, |
| 524 | RPCResult{RPCResult::Type::NUM, "height", "block height when transaction entered pool"}, |
| 525 | RPCResult{RPCResult::Type::NUM, "descendantcount", "number of in-mempool descendant transactions (including this one)"}, |
| 526 | RPCResult{RPCResult::Type::NUM, "descendantsize", "virtual transaction size of in-mempool descendants (including this one)"}, |
| 527 | RPCResult{RPCResult::Type::STR_AMOUNT, "descendantfees", /*optional=*/true, |
| 528 | "transaction fees of in-mempool descendants (including this one) with fee deltas used for mining priority, denominated in " + |
| 529 | CURRENCY_ATOM + "s (DEPRECATED, returned only if config option -deprecatedrpc=fees is passed)"}, |
| 530 | RPCResult{RPCResult::Type::NUM, "ancestorcount", "number of in-mempool ancestor transactions (including this one)"}, |
| 531 | RPCResult{RPCResult::Type::NUM, "ancestorsize", "virtual transaction size of in-mempool ancestors (including this one)"}, |
| 532 | RPCResult{RPCResult::Type::STR_AMOUNT, "ancestorfees", /*optional=*/true, |
| 533 | "transaction fees of in-mempool ancestors (including this one) with fee deltas used for mining priority, denominated in " + |
| 534 | CURRENCY_ATOM + "s (DEPRECATED, returned only if config option -deprecatedrpc=fees is passed)"}, |
| 535 | RPCResult{RPCResult::Type::STR_HEX, "wtxid", "hash of serialized transaction, including witness data"}, |
| 536 | RPCResult{RPCResult::Type::OBJ, "fees", "", |
| 537 | { |
| 538 | RPCResult{RPCResult::Type::STR_AMOUNT, "base", "transaction fee, denominated in " + CURRENCY_UNIT}, |
| 539 | RPCResult{RPCResult::Type::STR_AMOUNT, "modified", "transaction fee with fee deltas used for mining priority, denominated in " + CURRENCY_UNIT}, |
| 540 | RPCResult{RPCResult::Type::STR_AMOUNT, "ancestor", "transaction fees of in-mempool ancestors (including this one) with fee deltas used for mining priority, denominated in " + CURRENCY_UNIT}, |
| 541 | RPCResult{RPCResult::Type::STR_AMOUNT, "descendant", "transaction fees of in-mempool descendants (including this one) with fee deltas used for mining priority, denominated in " + CURRENCY_UNIT}, |
| 542 | }}, |
| 543 | RPCResult{RPCResult::Type::ARR, "depends", "unconfirmed transactions used as inputs for this transaction", |
| 544 | {RPCResult{RPCResult::Type::STR_HEX, "transactionid", "parent transaction id"}}}, |
| 545 | RPCResult{RPCResult::Type::ARR, "spentby", "unconfirmed transactions spending outputs from this transaction", |
| 546 | {RPCResult{RPCResult::Type::STR_HEX, "transactionid", "child transaction id"}}}, |
| 547 | RPCResult{RPCResult::Type::BOOL, "bip125-replaceable", "Whether this transaction could be replaced due to BIP125 (replace-by-fee)"}, |
| 548 | RPCResult{RPCResult::Type::BOOL, "unbroadcast", "Whether this transaction is currently unbroadcast (initial broadcast not yet acknowledged by any peers)"}, |
| 549 | };} |
| 550 | |
| 551 | static void entryToJSON(const CTxMemPool& pool, UniValue& info, const CTxMemPoolEntry& e) EXCLUSIVE_LOCKS_REQUIRED(pool.cs) |
| 552 | { |
no outgoing calls
no test coverage detected