[RPC, Wallet] Move RPC dispatch table registration to wallet/ code

Allow extending the rpc dispatch table by appending commands when server is not running.
This commit is contained in:
Jonas Schnelli
2016-01-07 08:33:49 +01:00
committed by Jack Grigg
parent aad4b86e95
commit 34aca1b03c
9 changed files with 141 additions and 129 deletions

View File

@@ -77,6 +77,7 @@ TestingSetup::TestingSetup()
{
#ifdef ENABLE_WALLET
bitdb.MakeMock();
walletRegisterRPCCommands();
#endif
ClearDatadirCache();
pathTemp = GetTempPath() / strprintf("test_bitcoin_%lu_%i", (unsigned long)GetTime(), (int)(GetRand(100000)));