| 163 | } |
| 164 | |
| 165 | static bool InitRPCAuthentication() |
| 166 | { |
| 167 | if (mapArgs["-rpcpassword"] == "") |
| 168 | { |
| 169 | LogPrintf("No rpcpassword set - using random cookie authentication\n"); |
| 170 | if (!GenerateAuthCookie(&strRPCUserColonPass)) { |
| 171 | uiInterface.ThreadSafeMessageBox( |
| 172 | _("Error: A fatal internal error occurred, see debug.log for details"), // Same message as AbortNode |
| 173 | "", CClientUIInterface::MSG_ERROR); |
| 174 | return false; |
| 175 | } |
| 176 | } else { |
| 177 | strRPCUserColonPass = mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"]; |
| 178 | } |
| 179 | return true; |
| 180 | } |
| 181 | |
| 182 | bool StartHTTPRPC() |
| 183 | { |
no test coverage detected