MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / RPCRunLater

Function RPCRunLater

src/rpcserver.cpp:552–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552void RPCRunLater(const std::string& name, boost::function<void(void)> func, int64_t nSeconds)
553{
554 if (timerInterfaces.empty())
555 throw JSONRPCError(RPC_INTERNAL_ERROR, "No timer handler registered for RPC");
556 deadlineTimers.erase(name);
557 RPCTimerInterface* timerInterface = timerInterfaces[0];
558 LogPrint("rpc", "queue run of timer %s in %i seconds (using %s)\n", name, nSeconds, timerInterface->Name());
559 deadlineTimers.insert(std::make_pair(name, boost::shared_ptr<RPCTimerBase>(timerInterface->NewTimer(func, nSeconds*1000))));
560}
561
562const CRPCTable tableRPC;

Callers 1

walletpassphraseFunction · 0.85

Calls 6

JSONRPCErrorFunction · 0.85
emptyMethod · 0.45
eraseMethod · 0.45
NameMethod · 0.45
insertMethod · 0.45
NewTimerMethod · 0.45

Tested by

no test coverage detected