#include <bitcoin-build-config.h>
#include <rpc/server.h>
#include <common/args.h>
#include <common/system.h>
#include <logging.h>
#include <node/context.h>
#include <node/kernel_notifications.h>
#include <rpc/server_util.h>
#include <rpc/util.h>
#include <sync.h>
#include <util/signalinterrupt.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <util/time.h>
#include <validation.h>
#include <algorithm>
#include <cassert>
#include <chrono>
#include <memory>
#include <mutex>
#include <unordered_map>
Go to the source code of this file.
◆ ExecuteCommand()
◆ ExecuteCommands()
◆ getrpcinfo()
◆ GUARDED_BY()
static std::string rpcWarmupStatus GUARDED_BY |
( |
g_rpc_warmup_mutex |
| ) |
= "RPC server started" |
|
static |
◆ help()
◆ InterruptRPC()
◆ IsDeprecatedRPCEnabled()
bool IsDeprecatedRPCEnabled |
( |
const std::string & |
method | ) |
|
◆ IsRPCRunning()
Query whether RPC is running.
Definition at line 304 of file server.cpp.
◆ JSONRPCExec()
◆ RpcInterruptionPoint()
void RpcInterruptionPoint |
( |
| ) |
|
Throw JSONRPCError if RPC is not running.
Definition at line 309 of file server.cpp.
◆ RPCIsInWarmup()
bool RPCIsInWarmup |
( |
std::string * |
outStatus | ) |
|
◆ SetRPCWarmupFinished()
void SetRPCWarmupFinished |
( |
| ) |
|
◆ SetRPCWarmupStarting()
void SetRPCWarmupStarting |
( |
| ) |
|
◆ SetRPCWarmupStatus()
void SetRPCWarmupStatus |
( |
const std::string & |
newStatus | ) |
|
Set the RPC warmup status.
When this is done, all RPC calls will error out immediately with RPC_IN_WARMUP.
Definition at line 314 of file server.cpp.
◆ StartRPC()
◆ stop()
◆ StopRPC()
◆ transformNamedArguments()
Process named arguments into a vector of positional arguments, based on the passed-in specification for the RPC call's arguments.
Definition at line 370 of file server.cpp.
◆ uptime()
◆ g_rpc_running
std::atomic<bool> g_rpc_running {false} |
|
static |
◆ g_rpc_server_info
◆ g_rpc_warmup_mutex
◆ tableRPC
◆ vRPCCommands
Initial value:{
}
static RPCHelpMan uptime()
static RPCHelpMan getrpcinfo()
Definition at line 240 of file server.cpp.