aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2016-01-07 08:33:49 +0100
committerJonas Schnelli <dev@jonasschnelli.ch>2016-01-20 15:03:25 +0100
commitdd2dc400eed7c4e8521d1264d652ee32070d2c47 (patch)
tree89f56a6a0f1b6b38054a25bdff3678f3ccdc0fc1 /src/init.cpp
parente1060c56cca7eeab8e217eb7b416c16487fd175e (diff)
[RPC, Wallet] Move RPC dispatch table registration to wallet/ code
Allow extending the rpc dispatch table by appending commands when server is not running.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 374e756abd..1314afb7c3 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -926,6 +926,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
#ifdef ENABLE_WALLET
bool fDisableWallet = GetBoolArg("-disablewallet", false);
+ if (!fDisableWallet)
+ walletRegisterRPCCommands();
#endif
nConnectTimeout = GetArg("-timeout", DEFAULT_CONNECT_TIMEOUT);