@@ -692,13 +692,13 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
692
692
#endif
693
693
694
694
if (!SetupNetworking ())
695
- return InitError (" Error: Initializing networking failed" );
695
+ return InitError (" Initializing networking failed" );
696
696
697
697
#ifndef WIN32
698
698
if (GetBoolArg (" -sysperms" , false )) {
699
699
#ifdef ENABLE_WALLET
700
700
if (!GetBoolArg (" -disablewallet" , false ))
701
- return InitError (" Error: -sysperms is not allowed in combination with enabled wallet functionality" );
701
+ return InitError (" -sysperms is not allowed in combination with enabled wallet functionality" );
702
702
#endif
703
703
} else {
704
704
umask (077 );
@@ -829,16 +829,16 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
829
829
830
830
// Check for -debugnet
831
831
if (GetBoolArg (" -debugnet" , false ))
832
- InitWarning (_ (" Warning: Unsupported argument -debugnet ignored, use -debug=net." ));
832
+ InitWarning (_ (" Unsupported argument -debugnet ignored, use -debug=net." ));
833
833
// Check for -socks - as this is a privacy risk to continue, exit here
834
834
if (mapArgs.count (" -socks" ))
835
- return InitError (_ (" Error: Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported." ));
835
+ return InitError (_ (" Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported." ));
836
836
// Check for -tor - as this is a privacy risk to continue, exit here
837
837
if (GetBoolArg (" -tor" , false ))
838
- return InitError (_ (" Error: Unsupported argument -tor found, use -onion." ));
838
+ return InitError (_ (" Unsupported argument -tor found, use -onion." ));
839
839
840
840
if (GetBoolArg (" -benchmark" , false ))
841
- InitWarning (_ (" Warning: Unsupported argument -benchmark ignored, use -debug=bench." ));
841
+ InitWarning (_ (" Unsupported argument -benchmark ignored, use -debug=bench." ));
842
842
843
843
// Checkmempool and checkblockindex default to true in regtest mode
844
844
int ratio = std::min<int >(std::max<int >(GetArg (" -checkmempool" , chainparams.DefaultConsistencyChecks () ? 1 : 0 ), 0 ), 1000000 );
@@ -852,7 +852,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
852
852
int64_t nMempoolSizeLimit = GetArg (" -maxmempool" , DEFAULT_MAX_MEMPOOL_SIZE) * 1000000 ;
853
853
int64_t nMempoolDescendantSizeLimit = GetArg (" -limitdescendantsize" , DEFAULT_DESCENDANT_SIZE_LIMIT) * 1000 ;
854
854
if (nMempoolSizeLimit < 0 || nMempoolSizeLimit < nMempoolDescendantSizeLimit * 40 )
855
- return InitError (strprintf (_ (" Error: -maxmempool must be at least %d MB" ), GetArg (" -limitdescendantsize" , DEFAULT_DESCENDANT_SIZE_LIMIT) / 25 ));
855
+ return InitError (strprintf (_ (" -maxmempool must be at least %d MB" ), GetArg (" -limitdescendantsize" , DEFAULT_DESCENDANT_SIZE_LIMIT) / 25 ));
856
856
857
857
// -par=0 means autodetect, but nScriptCheckThreads==0 means no concurrency
858
858
nScriptCheckThreads = GetArg (" -par" , DEFAULT_SCRIPTCHECK_THREADS);
@@ -921,7 +921,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
921
921
if (!ParseMoney (mapArgs[" -paytxfee" ], nFeePerK))
922
922
return InitError (strprintf (_ (" Invalid amount for -paytxfee=<amount>: '%s'" ), mapArgs[" -paytxfee" ]));
923
923
if (nFeePerK > nHighTransactionFeeWarning)
924
- InitWarning (_ (" Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction." ));
924
+ InitWarning (_ (" -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction." ));
925
925
payTxFee = CFeeRate (nFeePerK, 1000 );
926
926
if (payTxFee < ::minRelayTxFee)
927
927
{
@@ -935,7 +935,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
935
935
if (!ParseMoney (mapArgs[" -maxtxfee" ], nMaxFee))
936
936
return InitError (strprintf (_ (" Invalid amount for -maxtxfee=<amount>: '%s'" ), mapArgs[" -maptxfee" ]));
937
937
if (nMaxFee > nHighTransactionMaxFeeWarning)
938
- InitWarning (_ (" Warning: -maxtxfee is set very high! Fees this large could be paid on a single transaction." ));
938
+ InitWarning (_ (" -maxtxfee is set very high! Fees this large could be paid on a single transaction." ));
939
939
maxTxFee = nMaxFee;
940
940
if (CFeeRate (maxTxFee, 1000 ) < ::minRelayTxFee)
941
941
{
@@ -1062,12 +1062,12 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
1062
1062
BOOST_FOREACH (string cmt, mapMultiArgs[" -uacomment" ])
1063
1063
{
1064
1064
if (cmt != SanitizeString (cmt, SAFE_CHARS_UA_COMMENT))
1065
- return InitError (strprintf (" User Agent comment (%s) contains unsafe characters." , cmt));
1065
+ return InitError (strprintf (_ ( " User Agent comment (%s) contains unsafe characters." ) , cmt));
1066
1066
uacomments.push_back (SanitizeString (cmt, SAFE_CHARS_UA_COMMENT));
1067
1067
}
1068
1068
strSubVersion = FormatSubVersion (CLIENT_NAME, CLIENT_VERSION, uacomments);
1069
1069
if (strSubVersion.size () > MAX_SUBVERSION_LENGTH) {
1070
- return InitError (strprintf (" Total length of network version string %i exceeds maximum of %i characters . Reduce the number and/ or size of uacomments." ,
1070
+ return InitError (strprintf (_ ( " Total length of network version string (%i) exceeds maximum length (%i) . Reduce the number or size of uacomments." ) ,
1071
1071
strSubVersion.size (), MAX_SUBVERSION_LENGTH));
1072
1072
}
1073
1073
@@ -1391,9 +1391,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
1391
1391
strErrors << _ (" Error loading wallet.dat: Wallet corrupted" ) << " \n " ;
1392
1392
else if (nLoadWalletRet == DB_NONCRITICAL_ERROR)
1393
1393
{
1394
- string msg (_ (" Warning: error reading wallet.dat! All keys read correctly, but transaction data"
1394
+ InitWarning (_ (" Error reading wallet.dat! All keys read correctly, but transaction data"
1395
1395
" or address book entries might be missing or incorrect." ));
1396
- InitWarning (msg);
1397
1396
}
1398
1397
else if (nLoadWalletRet == DB_TOO_NEW)
1399
1398
strErrors << _ (" Error loading wallet.dat: Wallet requires newer version of Bitcoin Core" ) << " \n " ;
0 commit comments