diff --git a/src/init.cpp b/src/init.cpp --- a/src/init.cpp +++ b/src/init.cpp @@ -42,9 +42,6 @@ #include #include #include -#ifdef ENABLE_WALLET -#include -#endif #include #include @@ -1603,9 +1600,6 @@ RegisterAllRPCCommands(config, rpcServer, tableRPC); g_wallet_init_interface->RegisterRPC(tableRPC); -#ifdef ENABLE_WALLET - RegisterDumpRPCCommands(tableRPC); -#endif nConnectTimeout = gArgs.GetArg("-timeout", DEFAULT_CONNECT_TIMEOUT); if (nConnectTimeout <= 0) { diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp --- a/src/wallet/init.cpp +++ b/src/wallet/init.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -291,6 +292,7 @@ } RegisterWalletRPCCommands(t); + RegisterDumpRPCCommands(t); } bool WalletInit::Verify(const CChainParams &chainParams) { diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -1470,10 +1470,6 @@ // clang-format on void RegisterDumpRPCCommands(CRPCTable &t) { - if (gArgs.GetBoolArg("-disablewallet", false)) { - return; - } - for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++) { t.appendCommand(commands[vcidx].name, &commands[vcidx]); }