MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / AppInitServers

Function AppInitServers

src/init.cpp:631–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631bool AppInitServers(boost::thread_group& threadGroup)
632{
633 RPCServer::OnStopped(&OnRPCStopped);
634 RPCServer::OnPreCommand(&OnRPCPreCommand);
635 if (!InitHTTPServer())
636 return false;
637 if (!StartRPC())
638 return false;
639 if (!StartHTTPRPC())
640 return false;
641 if (GetBoolArg("-rest", false) && !StartREST())
642 return false;
643 if (!StartHTTPServer(threadGroup))
644 return false;
645 return true;
646}
647
648/** Initialize bitcoin.
649 * @pre Parameters should be parsed and config file should be read.

Callers 1

AppInit2Function · 0.85

Calls 6

InitHTTPServerFunction · 0.85
StartRPCFunction · 0.85
StartHTTPRPCFunction · 0.85
GetBoolArgFunction · 0.85
StartRESTFunction · 0.85
StartHTTPServerFunction · 0.85

Tested by

no test coverage detected