@@ -834,13 +834,13 @@ bool AppInit2(boost::thread_group& threadGroup)
834
834
}
835
835
}
836
836
nTxConfirmTarget = GetArg (" -txconfirmtarget" , 1 );
837
- bSpendZeroConfChange = GetArg (" -spendzeroconfchange" , true );
838
- fSendFreeTransactions = GetArg (" -sendfreetransactions" , false );
837
+ bSpendZeroConfChange = GetBoolArg (" -spendzeroconfchange" , true );
838
+ fSendFreeTransactions = GetBoolArg (" -sendfreetransactions" , false );
839
839
840
840
std::string strWalletFile = GetArg (" -wallet" , " wallet.dat" );
841
841
#endif // ENABLE_WALLET
842
842
843
- fIsBareMultisigStd = GetArg (" -permitbaremultisig" , true ) != 0 ;
843
+ fIsBareMultisigStd = GetBoolArg (" -permitbaremultisig" , true );
844
844
nMaxDatacarrierBytes = GetArg (" -datacarriersize" , nMaxDatacarrierBytes);
845
845
846
846
// ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log
@@ -955,7 +955,7 @@ bool AppInit2(boost::thread_group& threadGroup)
955
955
proxyType addrProxy;
956
956
bool fProxy = false ;
957
957
if (mapArgs.count (" -proxy" )) {
958
- addrProxy = proxyType (CService (mapArgs[" -proxy" ], 9050 ), GetArg (" -proxyrandomize" , true ));
958
+ addrProxy = proxyType (CService (mapArgs[" -proxy" ], 9050 ), GetBoolArg (" -proxyrandomize" , true ));
959
959
if (!addrProxy.IsValid ())
960
960
return InitError (strprintf (_ (" Invalid -proxy address: '%s'" ), mapArgs[" -proxy" ]));
961
961
@@ -972,7 +972,7 @@ bool AppInit2(boost::thread_group& threadGroup)
972
972
if (!mapArgs.count (" -onion" ))
973
973
addrOnion = addrProxy;
974
974
else
975
- addrOnion = proxyType (CService (mapArgs[" -onion" ], 9050 ), GetArg (" -proxyrandomize" , true ));
975
+ addrOnion = proxyType (CService (mapArgs[" -onion" ], 9050 ), GetBoolArg (" -proxyrandomize" , true ));
976
976
if (!addrOnion.IsValid ())
977
977
return InitError (strprintf (_ (" Invalid -onion address: '%s'" ), mapArgs[" -onion" ]));
978
978
SetProxy (NET_TOR, addrOnion);
0 commit comments