diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-03-27 16:04:31 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-03-27 16:23:22 +0200 |
| commit | 8d8f28dd52fc9f78f57842f94842c8433f1811be (patch) | |
| tree | ec17b8d97cbff8c525453f2079ba1223f0500ddf /src | |
| parent | refactor: Move GetDifficulty out of `rpc/server.h` (diff) | |
| download | discoin-8d8f28dd52fc9f78f57842f94842c8433f1811be.tar.xz discoin-8d8f28dd52fc9f78f57842f94842c8433f1811be.zip | |
refactor: Move RPCNotifyBlockChange out of `rpc/server.h`
Diffstat (limited to 'src')
| -rw-r--r-- | src/init.cpp | 1 | ||||
| -rw-r--r-- | src/rpc/blockchain.h | 3 | ||||
| -rw-r--r-- | src/rpc/server.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index a78224d5d..c42c206a5 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -27,6 +27,7 @@ #include "policy/policy.h" #include "rpc/server.h" #include "rpc/register.h" +#include "rpc/blockchain.h" #include "script/standard.h" #include "script/sigcache.h" #include "scheduler.h" diff --git a/src/rpc/blockchain.h b/src/rpc/blockchain.h index 69cba8f01..8821f297f 100644 --- a/src/rpc/blockchain.h +++ b/src/rpc/blockchain.h @@ -16,5 +16,8 @@ class CBlockIndex; */ double GetDifficulty(const CBlockIndex* blockindex = nullptr); +/** Callback for when block tip changed. */ +void RPCNotifyBlockChange(bool ibd, const CBlockIndex *); + #endif diff --git a/src/rpc/server.h b/src/rpc/server.h index c3692d91b..34a9d3c24 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -198,7 +198,6 @@ bool StartRPC(); void InterruptRPC(); void StopRPC(); std::string JSONRPCExecBatch(const UniValue& vReq); -void RPCNotifyBlockChange(bool ibd, const CBlockIndex *); // Retrieves any serialization flags requested in command line argument int RPCSerializationFlags(); |