| 180 | } |
| 181 | |
| 182 | bool StartHTTPRPC() |
| 183 | { |
| 184 | LogPrint("rpc", "Starting HTTP RPC server\n"); |
| 185 | if (!InitRPCAuthentication()) |
| 186 | return false; |
| 187 | |
| 188 | RegisterHTTPHandler("/", true, HTTPReq_JSONRPC); |
| 189 | |
| 190 | assert(EventBase()); |
| 191 | httpRPCTimerInterface = new HTTPRPCTimerInterface(EventBase()); |
| 192 | RPCSetTimerInterface(httpRPCTimerInterface); |
| 193 | return true; |
| 194 | } |
| 195 | |
| 196 | void InterruptHTTPRPC() |
| 197 | { |
no test coverage detected