| 251 | } |
| 252 | |
| 253 | void CRPCTable::appendCommand(const std::string& name, const CRPCCommand* pcmd) |
| 254 | { |
| 255 | CHECK_NONFATAL(!IsRPCRunning()); // Only add commands before rpc is running |
| 256 | |
| 257 | mapCommands[name].push_back(pcmd); |
| 258 | } |
| 259 | |
| 260 | bool CRPCTable::removeCommand(const std::string& name, const CRPCCommand* pcmd) |
| 261 | { |