Truthier error message when rpcpassword is missing
This commit is contained in:
parent
b5d1b10929
commit
77c38bb5cc
1 changed files with 1 additions and 7 deletions
|
@ -565,13 +565,8 @@ void StartRPCThreads()
|
||||||
{
|
{
|
||||||
unsigned char rand_pwd[32];
|
unsigned char rand_pwd[32];
|
||||||
GetRandBytes(rand_pwd, 32);
|
GetRandBytes(rand_pwd, 32);
|
||||||
string strWhatAmI = "To use bitcoind";
|
|
||||||
if (mapArgs.count("-server"))
|
|
||||||
strWhatAmI = strprintf(_("To use the %s option"), "\"-server\"");
|
|
||||||
else if (mapArgs.count("-daemon"))
|
|
||||||
strWhatAmI = strprintf(_("To use the %s option"), "\"-daemon\"");
|
|
||||||
uiInterface.ThreadSafeMessageBox(strprintf(
|
uiInterface.ThreadSafeMessageBox(strprintf(
|
||||||
_("%s, you must set a rpcpassword in the configuration file:\n"
|
_("To use bitcoind, or the -server option to bitcoin-qt, you must set an rpcpassword in the configuration file:\n"
|
||||||
"%s\n"
|
"%s\n"
|
||||||
"It is recommended you use the following random password:\n"
|
"It is recommended you use the following random password:\n"
|
||||||
"rpcuser=bitcoinrpc\n"
|
"rpcuser=bitcoinrpc\n"
|
||||||
|
@ -581,7 +576,6 @@ void StartRPCThreads()
|
||||||
"If the file does not exist, create it with owner-readable-only file permissions.\n"
|
"If the file does not exist, create it with owner-readable-only file permissions.\n"
|
||||||
"It is also recommended to set alertnotify so you are notified of problems;\n"
|
"It is also recommended to set alertnotify so you are notified of problems;\n"
|
||||||
"for example: alertnotify=echo %%s | mail -s \"Bitcoin Alert\" admin@foo.com\n"),
|
"for example: alertnotify=echo %%s | mail -s \"Bitcoin Alert\" admin@foo.com\n"),
|
||||||
strWhatAmI,
|
|
||||||
GetConfigFile().string(),
|
GetConfigFile().string(),
|
||||||
EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32)),
|
EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32)),
|
||||||
"", CClientUIInterface::MSG_ERROR | CClientUIInterface::SECURE);
|
"", CClientUIInterface::MSG_ERROR | CClientUIInterface::SECURE);
|
||||||
|
|
Loading…
Reference in a new issue