aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-08-14 10:15:30 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-08-14 12:37:06 +0200
commitfa93bc14c7411a108dd024d391344fabf0f76369 (patch)
treebb0d068e9dedd4bc9d11e7a6a3874589c316c64f /src/rpc/server.h
parent4d4bd5ed7474fac735ae6e0647a87b490e6ff1fa (diff)
rpc: Remove unused return type from appendCommand
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r--src/rpc/server.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h
index 6da3e94ea2..b2358ac5b2 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);
};