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`)
This commit is contained in:
Wladimir J. van der Laan
2017-03-27 12:14:43 +02:00
parent 5114f81136
commit e6dcfeec05
6 changed files with 25 additions and 8 deletions

View File

@@ -16,6 +16,7 @@
#include "miner.h"
#include "net.h"
#include "pow.h"
#include "rpc/blockchain.h"
#include "rpc/server.h"
#include "txmempool.h"
#include "util.h"