MCPcopy Create free account
hub / github.com/ElementsProject/elements / AppInitServers

Function AppInitServers

src/init.cpp:682–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680#endif
681
682static bool AppInitServers(NodeContext& node)
683{
684 const ArgsManager& args = *Assert(node.args);
685 RPCServer::OnStarted(&OnRPCStarted);
686 RPCServer::OnStopped(&OnRPCStopped);
687 if (!InitHTTPServer())
688 return false;
689 StartRPC();
690 node.rpc_interruption_point = RpcInterruptionPoint;
691 if (!StartHTTPRPC(&node))
692 return false;
693 if (args.GetBoolArg("-rest", DEFAULT_REST_ENABLE)) StartREST(&node);
694 StartHTTPServer();
695 return true;
696}
697
698// Parameter interaction based on rules
699void InitParameterInteraction(ArgsManager& args)

Callers 1

AppInitMainFunction · 0.85

Calls 6

InitHTTPServerFunction · 0.85
StartRPCFunction · 0.85
StartHTTPRPCFunction · 0.85
StartRESTFunction · 0.85
StartHTTPServerFunction · 0.85
GetBoolArgMethod · 0.80

Tested by

no test coverage detected