mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-29 18:05:58 +02:00
[wallet] Add RegisterWalletRPC() function to wallet/init.cpp
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user