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

Function RPCRunLater

src/rpc/server.cpp:544–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544void RPCRunLater(const std::string& name, std::function<void(void)> func, int64_t nSeconds)
545{
546 if (!timerInterface)
547 throw JSONRPCError(RPC_INTERNAL_ERROR, "No timer handler registered for RPC");
548 deadlineTimers.erase(name);
549 LogPrint(BCLog::RPC, "queue run of timer %s in %i seconds (using %s)\n", name, nSeconds, timerInterface->Name());
550 deadlineTimers.emplace(name, std::unique_ptr<RPCTimerBase>(timerInterface->NewTimer(func, nSeconds*1000)));
551}
552
553int RPCSerializationFlags()
554{

Callers 1

walletpassphraseFunction · 0.85

Calls 4

JSONRPCErrorFunction · 0.85
eraseMethod · 0.45
NameMethod · 0.45
NewTimerMethod · 0.45

Tested by

no test coverage detected