MCPcopy Create free account
hub / github.com/LUX-Core/lux / StartHTTPRPC

Function StartHTTPRPC

src/httprpc.cpp:182–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182bool StartHTTPRPC()
183{
184 LogPrint("rpc", "Starting HTTP RPC server\n");
185 if (!InitRPCAuthentication())
186 return false;
187
188 RegisterHTTPHandler("/", true, HTTPReq_JSONRPC);
189
190 assert(EventBase());
191 httpRPCTimerInterface = new HTTPRPCTimerInterface(EventBase());
192 RPCSetTimerInterface(httpRPCTimerInterface);
193 return true;
194}
195
196void InterruptHTTPRPC()
197{

Callers 1

AppInitServersFunction · 0.85

Calls 5

LogPrintFunction · 0.85
InitRPCAuthenticationFunction · 0.85
RegisterHTTPHandlerFunction · 0.85
EventBaseFunction · 0.85
RPCSetTimerInterfaceFunction · 0.85

Tested by

no test coverage detected