| 160 | } |
| 161 | |
| 162 | bool StartHTTPRPC() |
| 163 | { |
| 164 | LogPrint("rpc", "Starting HTTP RPC server\n"); |
| 165 | if (!InitRPCAuthentication()) |
| 166 | return false; |
| 167 | |
| 168 | RegisterHTTPHandler("/", true, HTTPReq_JSONRPC); |
| 169 | |
| 170 | assert(EventBase()); |
| 171 | httpRPCTimerInterface = new HTTPRPCTimerInterface(EventBase()); |
| 172 | RPCRegisterTimerInterface(httpRPCTimerInterface); |
| 173 | return true; |
| 174 | } |
| 175 | |
| 176 | void InterruptHTTPRPC() |
| 177 | { |
no test coverage detected