Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 470 Lines • ▼ Show 20 Lines | static void entryToJSON(UniValue &info, const CTxMemPoolEntry &e) | ||||
} | } | ||||
info.pushKV("depends", depends); | info.pushKV("depends", depends); | ||||
UniValue spent(UniValue::VARR); | UniValue spent(UniValue::VARR); | ||||
const CTxMemPool::txiter &it = g_mempool.mapTx.find(tx.GetId()); | const CTxMemPool::txiter &it = g_mempool.mapTx.find(tx.GetId()); | ||||
const CTxMemPool::setEntries &setChildren = | const CTxMemPool::setEntries &setChildren = | ||||
g_mempool.GetMemPoolChildren(it); | g_mempool.GetMemPoolChildren(it); | ||||
for (const CTxMemPool::txiter &childiter : setChildren) { | for (CTxMemPool::txiter childiter : setChildren) { | ||||
spent.push_back(childiter->GetTx().GetId().ToString()); | spent.push_back(childiter->GetTx().GetId().ToString()); | ||||
} | } | ||||
info.pushKV("spentby", spent); | info.pushKV("spentby", spent); | ||||
} | } | ||||
UniValue mempoolToJSON(bool fVerbose) { | UniValue mempoolToJSON(bool fVerbose) { | ||||
if (fVerbose) { | if (fVerbose) { | ||||
▲ Show 20 Lines • Show All 1,744 Lines • Show Last 20 Lines |