MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / MempoolEntryDescription

Function MempoolEntryDescription

src/rpc/mempool.cpp:443–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443static std::vector<RPCResult> MempoolEntryDescription()
444{
445 std::vector<RPCResult> list = {
446 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."},
447 RPCResult{RPCResult::Type::NUM, "weight", "transaction weight as defined in BIP 141."},
448 RPCResult{RPCResult::Type::NUM_TIME, "time", "local time transaction entered pool in seconds since 1 Jan 1970 GMT"},
449 RPCResult{RPCResult::Type::NUM, "height", "block height when transaction entered pool"},
450 RPCResult{RPCResult::Type::NUM, "descendantcount", "number of in-mempool descendant transactions (including this one)"},
451 RPCResult{RPCResult::Type::NUM, "descendantsize", "virtual transaction size of in-mempool descendants (including this one)"},
452 RPCResult{RPCResult::Type::NUM, "ancestorcount", "number of in-mempool ancestor transactions (including this one)"},
453 RPCResult{RPCResult::Type::NUM, "ancestorsize", "virtual transaction size of in-mempool ancestors (including this one)"},
454 RPCResult{RPCResult::Type::NUM, "chunkweight", "sigops-adjusted weight (as defined in BIP 141 and modified by '-bytespersigop') of this transaction's chunk"},
455 RPCResult{RPCResult::Type::STR_HEX, "wtxid", "hash of serialized transaction, including witness data"},
456 RPCResult{RPCResult::Type::OBJ, "fees", "",
457 {
458 RPCResult{RPCResult::Type::STR_AMOUNT, "base", "transaction fee, denominated in " + CURRENCY_UNIT},
459 RPCResult{RPCResult::Type::STR_AMOUNT, "modified", "transaction fee with fee deltas used for mining priority, denominated in " + CURRENCY_UNIT},
460 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},
461 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},
462 RPCResult{RPCResult::Type::STR_AMOUNT, "chunk", "transaction fees of chunk, denominated in " + CURRENCY_UNIT},
463 }},
464 RPCResult{RPCResult::Type::ARR, "depends", "unconfirmed transactions used as inputs for this transaction",
465 {RPCResult{RPCResult::Type::STR_HEX, "transactionid", "parent transaction id"}}},
466 RPCResult{RPCResult::Type::ARR, "spentby", "unconfirmed transactions spending outputs from this transaction",
467 {RPCResult{RPCResult::Type::STR_HEX, "transactionid", "child transaction id"}}},
468 RPCResult{RPCResult::Type::BOOL, "unbroadcast", "Whether this transaction is currently unbroadcast (initial broadcast not yet acknowledged by any peers)"},
469 };
470 if (IsDeprecatedRPCEnabled("bip125")) {
471 list.emplace_back(RPCResult::Type::BOOL, "bip125-replaceable", "Whether this transaction signals BIP125 replaceability or has an unconfirmed ancestor signaling BIP125 replaceability. (DEPRECATED)\n");
472 }
473 return list;
474}
475
476void AppendChunkInfo(UniValue& all_chunks, FeePerWeight chunk_feerate, std::vector<const CTxMemPoolEntry *> chunk_txs)
477{

Callers 4

getrawmempoolFunction · 0.85
getmempoolancestorsFunction · 0.85
getmempooldescendantsFunction · 0.85
getmempoolentryFunction · 0.85

Calls 2

IsDeprecatedRPCEnabledFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected