aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/init.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-08-28 13:33:59 -0400
committerJohn Newbery <john@johnnewbery.com>2017-09-07 16:21:26 -0700
commit290f3c56d9dd8a519920939a4fc440da832c1c63 (patch)
treec6a33d86aa941f6f3a7f6b17821ecf7d8464ccc6 /src/wallet/init.cpp
parent062d63102eb1e90168d28589de8bf182e9a6a7d3 (diff)
[wallet] Add RegisterWalletRPC() function to wallet/init.cpp
Diffstat (limited to 'src/wallet/init.cpp')
-rw-r--r--src/wallet/init.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
index 84318eac0a..9fd038150f 100644
--- a/src/wallet/init.cpp
+++ b/src/wallet/init.cpp
@@ -10,6 +10,7 @@
#include "utilmoneystr.h"
#include "validation.h"
#include "wallet/wallet.h"
+#include "wallet/rpcwallet.h"
std::string GetWalletHelpString(bool showDebug)
{
@@ -171,6 +172,13 @@ bool WalletParameterInteraction()
return true;
}
+void RegisterWalletRPC(CRPCTable &t)
+{
+ if (gArgs.GetBoolArg("-disablewallet", false)) return;
+
+ RegisterWalletRPCCommands(t);
+}
+
bool VerifyWallets()
{
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET))