diff options
| author | MarcoFalke <[email protected]> | 2020-08-14 10:15:30 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-08-14 12:37:06 +0200 |
| commit | fa93bc14c7411a108dd024d391344fabf0f76369 (patch) | |
| tree | bb0d068e9dedd4bc9d11e7a6a3874589c316c64f /src/rpc/server.h | |
| parent | Merge #17204: wallet: Do not turn OP_1NEGATE in scriptSig into 0x0181 in sign... (diff) | |
| download | discoin-fa93bc14c7411a108dd024d391344fabf0f76369.tar.xz discoin-fa93bc14c7411a108dd024d391344fabf0f76369.zip | |
rpc: Remove unused return type from appendCommand
Diffstat (limited to 'src/rpc/server.h')
| -rw-r--r-- | src/rpc/server.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h index 6da3e94ea..b2358ac5b 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -160,7 +160,7 @@ public: /** * Appends a CRPCCommand to the dispatch table. * - * Returns false if RPC server is already running (dump concurrency protection). + * Precondition: RPC server is not running * * Commands with different method names but the same unique_id will * be considered aliases, and only the first registered method name will @@ -169,7 +169,7 @@ public: * between calls based on method name, and aliased commands can also * register different names, types, and numbers of parameters. */ - bool appendCommand(const std::string& name, const CRPCCommand* pcmd); + void appendCommand(const std::string& name, const CRPCCommand* pcmd); bool removeCommand(const std::string& name, const CRPCCommand* pcmd); }; |