| 146 | } |
| 147 | |
| 148 | static bool InitRPCAuthentication() |
| 149 | { |
| 150 | if (mapArgs["-rpcpassword"] == "") |
| 151 | { |
| 152 | LogPrintf("Error: No rpcpassword set"); |
| 153 | uiInterface.ThreadSafeMessageBox(_("Error: No rpcpassword set"), |
| 154 | "", CClientUIInterface::MSG_ERROR); |
| 155 | return false; |
| 156 | } else { |
| 157 | strRPCUserColonPass = mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"]; |
| 158 | } |
| 159 | return true; |
| 160 | } |
| 161 | |
| 162 | bool StartHTTPRPC() |
| 163 | { |