aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-03-31 10:55:06 +0200
committerWladimir J. van der Laan <[email protected]>2016-03-31 10:55:15 +0200
commit16555b658f5b98fd5e0102bd3618659588fe8d0b (patch)
tree8cf3ced27bcf464c2113436aadb718769b44337b /src/init.cpp
parentMerge #7648: BIP9 versionbits softfork for BIP68, BIP112 and BIP113 (diff)
parentrpc: Register calls where they are defined (diff)
downloaddiscoin-16555b658f5b98fd5e0102bd3618659588fe8d0b.tar.xz
discoin-16555b658f5b98fd5e0102bd3618659588fe8d0b.zip
Merge #7766: rpc: Register calls where they are defined
fb8a8cf rpc: Register calls where they are defined (Wladimir J. van der Laan)
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 0fb714612..a872abd16 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -24,6 +24,7 @@
#include "net.h"
#include "policy/policy.h"
#include "rpc/server.h"
+#include "rpc/register.h"
#include "script/standard.h"
#include "script/sigcache.h"
#include "scheduler.h"
@@ -915,10 +916,11 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
fPruneMode = true;
}
+ RegisterAllCoreRPCCommands(tableRPC);
#ifdef ENABLE_WALLET
bool fDisableWallet = GetBoolArg("-disablewallet", false);
if (!fDisableWallet)
- walletRegisterRPCCommands();
+ RegisterWalletRPCCommands(tableRPC);
#endif
nConnectTimeout = GetArg("-timeout", DEFAULT_CONNECT_TIMEOUT);