src/rest.cpp
static CTxMemPool* GetMemPool(HTTPRequest* req)
{
    if (!g_rpc_node || !g_rpc_node->mempool) {
        RESTERR(req, HTTP_NOT_FOUND, "Mempool disabled or instance not found");
        return nullptr;
    }
    return g_rpc_node->mempool;
}
/**
 * Get the node context mempool.
 *
 * Set the HTTP error and return nullptr if node context
 * mempool is not found.
 *
 * @param[in]  req the HTTP request
 * return pointer to the mempool or nullptr if no mempool found
 */
Get the node context mempool.
Set the HTTP error and return nullptr if node context
mempool is not found.

@param[in]  req the HTTP request
return pointer to the mempool or nullptr if no mempool found
Get the node context mempool . Set the HTTP error and return nullptr if node context mempool is not found . @param [ in ] req the HTTP request return pointer to the mempool or nullptr if no mempool found
static CTxMemPool* GetMemPool(HTTPRequest* req)
{
    if (!g_rpc_node || !g_rpc_node->mempool) {
        RESTERR(req, HTTP_NOT_FOUND, "Mempool disabled or instance not found");
        return nullptr;
    }
    return g_rpc_node->mempool;
}
static CTxMemPool * GetMemPool ( HTTPRequest * req ) { if ( ! g_rpc_node || ! g_rpc_node -> mempool ) { RESTERR ( req , HTTP_NOT_FOUND , " " ) ; return nullptr ; } return g_rpc_node -> mempool ; }
Get the node context mempool.
Get the node context mempool .