@@ -74,33 +74,6 @@ static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false;
74
74
std::unique_ptr<CConnman> g_connman;
75
75
std::unique_ptr<PeerLogicValidation> peerLogic;
76
76
77
- #if !(ENABLE_WALLET)
78
- class DummyWalletInit : public WalletInitInterface {
79
- public:
80
-
81
- void AddWalletOptions () const override ;
82
- bool ParameterInteraction () const override {return true ;}
83
- void RegisterRPC (CRPCTable &) const override {}
84
- bool Verify () const override {return true ;}
85
- bool Open () const override {LogPrintf (" No wallet support compiled in!\n " ); return true ;}
86
- void Start (CScheduler& scheduler) const override {}
87
- void Flush () const override {}
88
- void Stop () const override {}
89
- void Close () const override {}
90
- };
91
-
92
- void DummyWalletInit::AddWalletOptions () const
93
- {
94
- std::vector<std::string> opts = {" -addresstype" , " -changetype" , " -disablewallet" , " -discardfee=<amt>" , " -fallbackfee=<amt>" ,
95
- " -keypool=<n>" , " -mintxfee=<amt>" , " -paytxfee=<amt>" , " -rescan" , " -salvagewallet" , " -spendzeroconfchange" , " -txconfirmtarget=<n>" ,
96
- " -upgradewallet" , " -wallet=<path>" , " -walletbroadcast" , " -walletdir=<dir>" , " -walletnotify=<cmd>" , " -walletrbf" , " -zapwallettxes=<mode>" ,
97
- " -dblogsize=<n>" , " -flushwallet" , " -privdb" , " -walletrejectlongchains" };
98
- gArgs .AddHiddenArgs (opts);
99
- }
100
-
101
- const WalletInitInterface& g_wallet_init_interface = DummyWalletInit();
102
- #endif
103
-
104
77
#ifdef WIN32
105
78
// Win32 LevelDB doesn't use filedescriptors, and the ones used for
106
79
// accessing block files don't count towards the fd_set size limit
0 commit comments