MCPcopy Create free account
hub / github.com/LUX-Core/lux / PollReply

Method PollReply

src/rpcserver.cpp:521–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521void JSONRequest::PollReply(const UniValue& result) {
522 assert(isLongPolling);
523 UniValue reply(UniValue::VOBJ);
524 reply.push_back(Pair("result", result));
525 reply.push_back(Pair("error", NullUniValue));
526 reply.push_back(Pair("id", id));
527
528 req->Chunk(reply.write() + "\n");
529 req->ChunkEnd();
530}
531
532void RPCSetTimerInterfaceIfUnset(RPCTimerInterface *iface)
533{

Callers 1

HTTPReq_JSONRPCFunction · 0.80

Calls 5

PairFunction · 0.85
ChunkMethod · 0.80
ChunkEndMethod · 0.80
push_backMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected