[wallet] Add RegisterWalletRPC() function to wallet/init.cpp

This commit is contained in:
John Newbery
2017-08-28 13:33:59 -04:00
parent 062d63102e
commit 290f3c56d9
5 changed files with 17 additions and 4 deletions

View File

@@ -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))