From be33f3f50b7358bbad9e16bf730fac2ab3c4886b Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Fri, 28 Aug 2015 16:46:20 +0200 Subject: Implement RPCTimerHandler for Qt RPC console Implement RPCTimerHandler for Qt RPC console, so that `walletpassphrase` works with GUI and `-server=0`. Also simplify HTTPEvent-related code by using boost::function directly. --- src/rpcserver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rpcserver.h') diff --git a/src/rpcserver.h b/src/rpcserver.h index ac821d5b55..83cc37918b 100644 --- a/src/rpcserver.h +++ b/src/rpcserver.h @@ -92,12 +92,12 @@ public: /** Implementation name */ virtual const char *Name() = 0; /** Factory function for timers. - * RPC will call the function to create a timer that will call func in *seconds* seconds. + * RPC will call the function to create a timer that will call func in *millis* milliseconds. * @note As the RPC mechanism is backend-neutral, it can use different implementations of timers. * This is needed to cope with the case in which there is no HTTP server, but * only GUI RPC console, and to break the dependency of pcserver on httprpc. */ - virtual RPCTimerBase* NewTimer(boost::function&, int64_t) = 0; + virtual RPCTimerBase* NewTimer(boost::function& func, int64_t millis) = 0; }; /** Register factory function for timers */ -- cgit v1.2.3