aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-03-27 12:14:43 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2017-03-27 12:21:35 +0200
commite6dcfeec05d6527ab148550836937ff435e6449c (patch)
tree08be69b20b3acb139378636597e938c5864696f1 /src/rpc/server.h
parent5114f8113627791b871c88998bd5a3d36961c241 (diff)
refactor: Move GetDifficulty out of `rpc/server.h`
It has no business in `rpcserver.h`. Define it in the interface header of the implementation unit `rpcblockchain` where it is defined. Also modernize the signature to: double GetDifficulty(const CBlockIndex* blockindex = nullptr); (remove `extern`, replace `NULL` with `nullptr`)
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r--src/rpc/server.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h
index de14c7ed3e..c3692d91b7 100644
--- a/src/rpc/server.h
+++ b/src/rpc/server.h
@@ -191,7 +191,6 @@ extern std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKe
extern CAmount AmountFromValue(const UniValue& value);
extern UniValue ValueFromAmount(const CAmount& amount);
-extern double GetDifficulty(const CBlockIndex* blockindex = NULL);
extern std::string HelpExampleCli(const std::string& methodname, const std::string& args);
extern std::string HelpExampleRpc(const std::string& methodname, const std::string& args);