| 268 | } |
| 269 | |
| 270 | void CRPCTable::appendCommand(const std::string& name, const CRPCCommand* pcmd) |
| 271 | { |
| 272 | CHECK_NONFATAL(!IsRPCRunning()); // Only add commands before rpc is running |
| 273 | |
| 274 | mapCommands[name].push_back(pcmd); |
| 275 | } |
| 276 | |
| 277 | bool CRPCTable::removeCommand(const std::string& name, const CRPCCommand* pcmd) |
| 278 | { |