[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

@@ -431,6 +431,9 @@ double benchmark_connectblock_slow()
return duration;
}
extern UniValue getnewaddress(const UniValue& params, bool fHelp); // in rpcwallet.cpp
extern UniValue sendtoaddress(const UniValue& params, bool fHelp);
double benchmark_sendtoaddress(CAmount amount)
{
UniValue params(UniValue::VARR);