Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 432 Lines • ▼ Show 20 Lines | return " \"size\" : n, (numeric) transaction size.\n" | ||||
" \"ancestorfees\" : n, (numeric) modified fees (see above) " | " \"ancestorfees\" : n, (numeric) modified fees (see above) " | ||||
"of in-mempool ancestors (including this one)\n" | "of in-mempool ancestors (including this one)\n" | ||||
" \"depends\" : [ (array) unconfirmed transactions " | " \"depends\" : [ (array) unconfirmed transactions " | ||||
"used as inputs for this transaction\n" | "used as inputs for this transaction\n" | ||||
" \"transactionid\", (string) parent transaction id\n" | " \"transactionid\", (string) parent transaction id\n" | ||||
" ... ]\n"; | " ... ]\n"; | ||||
} | } | ||||
static void entryToJSON(UniValue &info, const CTxMemPoolEntry &e) { | static void entryToJSON(UniValue &info, const CTxMemPoolEntry &e) | ||||
EXCLUSIVE_LOCKS_REQUIRED(g_mempool.cs) { | |||||
AssertLockHeld(g_mempool.cs); | AssertLockHeld(g_mempool.cs); | ||||
info.pushKV("size", (int)e.GetTxSize()); | info.pushKV("size", (int)e.GetTxSize()); | ||||
info.pushKV("fee", ValueFromAmount(e.GetFee())); | info.pushKV("fee", ValueFromAmount(e.GetFee())); | ||||
info.pushKV("modifiedfee", ValueFromAmount(e.GetModifiedFee())); | info.pushKV("modifiedfee", ValueFromAmount(e.GetModifiedFee())); | ||||
info.pushKV("time", e.GetTime()); | info.pushKV("time", e.GetTime()); | ||||
info.pushKV("height", (int)e.GetHeight()); | info.pushKV("height", (int)e.GetHeight()); | ||||
info.pushKV("startingpriority", e.GetPriority(e.GetHeight())); | info.pushKV("startingpriority", e.GetPriority(e.GetHeight())); | ||||
▲ Show 20 Lines • Show All 1,483 Lines • Show Last 20 Lines |