diff options
author | John Newbery <john@johnnewbery.com> | 2017-08-28 13:33:59 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-09-07 16:21:26 -0700 |
commit | 290f3c56d9dd8a519920939a4fc440da832c1c63 (patch) | |
tree | c6a33d86aa941f6f3a7f6b17821ecf7d8464ccc6 /src/wallet/init.cpp | |
parent | 062d63102eb1e90168d28589de8bf182e9a6a7d3 (diff) |
[wallet] Add RegisterWalletRPC() function to wallet/init.cpp
Diffstat (limited to 'src/wallet/init.cpp')
-rw-r--r-- | src/wallet/init.cpp | 8 |
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)) |