@@ -935,9 +935,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
935
935
936
936
RegisterAllCoreRPCCommands (tableRPC);
937
937
#ifdef ENABLE_WALLET
938
- bool fDisableWallet = GetBoolArg (" -disablewallet" , false );
939
- if (!fDisableWallet )
940
- RegisterWalletRPCCommands (tableRPC);
938
+ RegisterWalletRPCCommands (tableRPC);
941
939
#endif
942
940
943
941
nConnectTimeout = GetArg (" -timeout" , DEFAULT_CONNECT_TIMEOUT);
@@ -965,9 +963,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
965
963
nBytesPerSigOp = GetArg (" -bytespersigop" , nBytesPerSigOp);
966
964
967
965
#ifdef ENABLE_WALLET
968
- if (!fDisableWallet && ! CWallet::ParameterInteraction ())
966
+ if (!CWallet::ParameterInteraction ())
969
967
return false ;
970
- #endif // ENABLE_WALLET
968
+ #endif
971
969
972
970
fIsBareMultisigStd = GetBoolArg (" -permitbaremultisig" , DEFAULT_PERMIT_BAREMULTISIG);
973
971
fAcceptDatacarrier = GetBoolArg (" -datacarrier" , DEFAULT_ACCEPT_DATACARRIER);
@@ -1095,11 +1093,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
1095
1093
1096
1094
// ********************************************************* Step 5: verify wallet database integrity
1097
1095
#ifdef ENABLE_WALLET
1098
- if (!fDisableWallet ) {
1099
- if (!CWallet::Verify ())
1100
- return false ;
1101
- } // (!fDisableWallet)
1102
- #endif // ENABLE_WALLET
1096
+ if (!CWallet::Verify ())
1097
+ return false ;
1098
+ #endif
1103
1099
// ********************************************************* Step 6: network initialization
1104
1100
1105
1101
assert (!g_connman);
@@ -1427,17 +1423,11 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
1427
1423
1428
1424
// ********************************************************* Step 8: load wallet
1429
1425
#ifdef ENABLE_WALLET
1430
- if (fDisableWallet ) {
1431
- pwalletMain = NULL ;
1432
- LogPrintf (" Wallet disabled!\n " );
1433
- } else {
1434
- CWallet::InitLoadWallet ();
1435
- if (!pwalletMain)
1436
- return false ;
1437
- }
1438
- #else // ENABLE_WALLET
1426
+ if (!CWallet::InitLoadWallet ())
1427
+ return false ;
1428
+ #else
1439
1429
LogPrintf (" No wallet support compiled in!\n " );
1440
- #endif // !ENABLE_WALLET
1430
+ #endif
1441
1431
1442
1432
// ********************************************************* Step 9: data directory maintenance
1443
1433
0 commit comments