MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / appendCommand

Method appendCommand

src/rpc/server.cpp:290–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290bool CRPCTable::appendCommand(const std::string& name, const CRPCCommand* pcmd)
291{
292 if (IsRPCRunning())
293 return false;
294
295 // don't allow overwriting for now
296 std::map<std::string, const CRPCCommand*>::const_iterator it = mapCommands.find(name);
297 if (it != mapCommands.end())
298 return false;
299
300 mapCommands[name] = pcmd;
301 return true;
302}
303
304void StartRPC()
305{

Callers 8

RegisterZMQRPCCommandsFunction · 0.80
rpcNestedTestsMethod · 0.80
RegisterMiscRPCCommandsFunction · 0.80
RegisterNetRPCCommandsFunction · 0.80

Calls 3

IsRPCRunningFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by 1

rpcNestedTestsMethod · 0.64