@@ -690,13 +690,13 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
690
690
#endif
691
691
692
692
if (!SetupNetworking ())
693
- return InitError (" Error: Initializing networking failed" );
693
+ return InitError (" Initializing networking failed" );
694
694
695
695
#ifndef WIN32
696
696
if (GetBoolArg (" -sysperms" , false )) {
697
697
#ifdef ENABLE_WALLET
698
698
if (!GetBoolArg (" -disablewallet" , false ))
699
- return InitError (" Error: -sysperms is not allowed in combination with enabled wallet functionality" );
699
+ return InitError (" -sysperms is not allowed in combination with enabled wallet functionality" );
700
700
#endif
701
701
} else {
702
702
umask (077 );
@@ -826,16 +826,16 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
826
826
827
827
// Check for -debugnet
828
828
if (GetBoolArg (" -debugnet" , false ))
829
- InitWarning (_ (" Warning: Unsupported argument -debugnet ignored, use -debug=net." ));
829
+ InitWarning (_ (" Unsupported argument -debugnet ignored, use -debug=net." ));
830
830
// Check for -socks - as this is a privacy risk to continue, exit here
831
831
if (mapArgs.count (" -socks" ))
832
- return InitError (_ (" Error: Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported." ));
832
+ return InitError (_ (" Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported." ));
833
833
// Check for -tor - as this is a privacy risk to continue, exit here
834
834
if (GetBoolArg (" -tor" , false ))
835
- return InitError (_ (" Error: Unsupported argument -tor found, use -onion." ));
835
+ return InitError (_ (" Unsupported argument -tor found, use -onion." ));
836
836
837
837
if (GetBoolArg (" -benchmark" , false ))
838
- InitWarning (_ (" Warning: Unsupported argument -benchmark ignored, use -debug=bench." ));
838
+ InitWarning (_ (" Unsupported argument -benchmark ignored, use -debug=bench." ));
839
839
840
840
// Checkmempool and checkblockindex default to true in regtest mode
841
841
mempool.setSanityCheck (GetBoolArg (" -checkmempool" , chainparams.DefaultConsistencyChecks ()));
@@ -846,7 +846,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
846
846
int64_t nMempoolSizeLimit = GetArg (" -maxmempool" , DEFAULT_MAX_MEMPOOL_SIZE) * 1000000 ;
847
847
int64_t nMempoolDescendantSizeLimit = GetArg (" -limitdescendantsize" , DEFAULT_DESCENDANT_SIZE_LIMIT) * 1000 ;
848
848
if (nMempoolSizeLimit < 0 || nMempoolSizeLimit < nMempoolDescendantSizeLimit * 40 )
849
- return InitError (strprintf (_ (" Error: -maxmempool must be at least %d MB" ), GetArg (" -limitdescendantsize" , DEFAULT_DESCENDANT_SIZE_LIMIT) / 25 ));
849
+ return InitError (strprintf (_ (" -maxmempool must be at least %d MB" ), GetArg (" -limitdescendantsize" , DEFAULT_DESCENDANT_SIZE_LIMIT) / 25 ));
850
850
851
851
// -par=0 means autodetect, but nScriptCheckThreads==0 means no concurrency
852
852
nScriptCheckThreads = GetArg (" -par" , DEFAULT_SCRIPTCHECK_THREADS);
@@ -915,7 +915,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
915
915
if (!ParseMoney (mapArgs[" -paytxfee" ], nFeePerK))
916
916
return InitError (strprintf (_ (" Invalid amount for -paytxfee=<amount>: '%s'" ), mapArgs[" -paytxfee" ]));
917
917
if (nFeePerK > nHighTransactionFeeWarning)
918
- InitWarning (_ (" Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction." ));
918
+ InitWarning (_ (" -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction." ));
919
919
payTxFee = CFeeRate (nFeePerK, 1000 );
920
920
if (payTxFee < ::minRelayTxFee)
921
921
{
@@ -929,7 +929,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
929
929
if (!ParseMoney (mapArgs[" -maxtxfee" ], nMaxFee))
930
930
return InitError (strprintf (_ (" Invalid amount for -maxtxfee=<amount>: '%s'" ), mapArgs[" -maptxfee" ]));
931
931
if (nMaxFee > nHighTransactionMaxFeeWarning)
932
- InitWarning (_ (" Warning: -maxtxfee is set very high! Fees this large could be paid on a single transaction." ));
932
+ InitWarning (_ (" -maxtxfee is set very high! Fees this large could be paid on a single transaction." ));
933
933
maxTxFee = nMaxFee;
934
934
if (CFeeRate (maxTxFee, 1000 ) < ::minRelayTxFee)
935
935
{
@@ -1056,12 +1056,12 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
1056
1056
BOOST_FOREACH (string cmt, mapMultiArgs[" -uacomment" ])
1057
1057
{
1058
1058
if (cmt != SanitizeString (cmt, SAFE_CHARS_UA_COMMENT))
1059
- return InitError (strprintf (" User Agent comment (%s) contains unsafe characters." , cmt));
1059
+ return InitError (strprintf (_ ( " User Agent comment (%s) contains unsafe characters." ) , cmt));
1060
1060
uacomments.push_back (SanitizeString (cmt, SAFE_CHARS_UA_COMMENT));
1061
1061
}
1062
1062
strSubVersion = FormatSubVersion (CLIENT_NAME, CLIENT_VERSION, uacomments);
1063
1063
if (strSubVersion.size () > MAX_SUBVERSION_LENGTH) {
1064
- return InitError (strprintf (" Total length of network version string %i exceeds maximum of %i characters . Reduce the number and/ or size of uacomments." ,
1064
+ return InitError (strprintf (_ ( " Total length of network version string (%i) exceeds maximum length (%i) . Reduce the number or size of uacomments." ) ,
1065
1065
strSubVersion.size (), MAX_SUBVERSION_LENGTH));
1066
1066
}
1067
1067
@@ -1382,9 +1382,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
1382
1382
strErrors << _ (" Error loading wallet.dat: Wallet corrupted" ) << " \n " ;
1383
1383
else if (nLoadWalletRet == DB_NONCRITICAL_ERROR)
1384
1384
{
1385
- string msg (_ (" Warning: error reading wallet.dat! All keys read correctly, but transaction data"
1385
+ InitWarning (_ (" Error reading wallet.dat! All keys read correctly, but transaction data"
1386
1386
" or address book entries might be missing or incorrect." ));
1387
- InitWarning (msg);
1388
1387
}
1389
1388
else if (nLoadWalletRet == DB_TOO_NEW)
1390
1389
strErrors << _ (" Error loading wallet.dat: Wallet requires newer version of Bitcoin Core" ) << " \n " ;
0 commit comments