|
|
@ -748,7 +748,7 @@ void StartRPCThreads() |
|
|
|
{ |
|
|
|
{ |
|
|
|
unsigned char rand_pwd[32]; |
|
|
|
unsigned char rand_pwd[32]; |
|
|
|
RAND_bytes(rand_pwd, 32); |
|
|
|
RAND_bytes(rand_pwd, 32); |
|
|
|
string strWhatAmI = "To use bitcoind"; |
|
|
|
string strWhatAmI = "To use twisterd"; |
|
|
|
if (mapArgs.count("-server")) |
|
|
|
if (mapArgs.count("-server")) |
|
|
|
strWhatAmI = strprintf(_("To use the %s option"), "\"-server\""); |
|
|
|
strWhatAmI = strprintf(_("To use the %s option"), "\"-server\""); |
|
|
|
else if (mapArgs.count("-daemon")) |
|
|
|
else if (mapArgs.count("-daemon")) |
|
|
@ -756,14 +756,14 @@ void StartRPCThreads() |
|
|
|
uiInterface.ThreadSafeMessageBox(strprintf( |
|
|
|
uiInterface.ThreadSafeMessageBox(strprintf( |
|
|
|
_("%s, you must set a rpcpassword in the configuration file:\n" |
|
|
|
_("%s, you must set a 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 password for now:\n" |
|
|
|
"rpcuser=bitcoinrpc\n" |
|
|
|
"rpcuser=user\n" |
|
|
|
"rpcpassword=%s\n" |
|
|
|
"rpcpassword=pwd\n" |
|
|
|
"(you do not need to remember this password)\n" |
|
|
|
"(you do not need to remember this password)\n" |
|
|
|
"The username and password MUST NOT be the same.\n" |
|
|
|
"The username and password MUST NOT be the same.\n" |
|
|
|
"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 \"Twister Alert\" admin@foo.com\n"), |
|
|
|
strWhatAmI.c_str(), |
|
|
|
strWhatAmI.c_str(), |
|
|
|
GetConfigFile().string().c_str(), |
|
|
|
GetConfigFile().string().c_str(), |
|
|
|
EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32).c_str()), |
|
|
|
EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32).c_str()), |
|
|
|