| 328 | } |
| 329 | |
| 330 | void CRPCTable::appendCommand(const std::string &name, |
| 331 | const CRPCCommand *pcmd) { |
| 332 | // Only add commands before rpc is running |
| 333 | CHECK_NONFATAL(!IsRPCRunning()); |
| 334 | |
| 335 | mapCommands[name].push_back(pcmd); |
| 336 | } |
| 337 | |
| 338 | bool CRPCTable::removeCommand(const std::string &name, |
| 339 | const CRPCCommand *pcmd) { |