mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 13:32:47 +01:00
refactor: Move RPCNotifyBlockChange out of rpc/server.h
This commit is contained in:
parent
e6dcfeec05
commit
8d8f28dd52
@ -27,6 +27,7 @@
|
|||||||
#include "policy/policy.h"
|
#include "policy/policy.h"
|
||||||
#include "rpc/server.h"
|
#include "rpc/server.h"
|
||||||
#include "rpc/register.h"
|
#include "rpc/register.h"
|
||||||
|
#include "rpc/blockchain.h"
|
||||||
#include "script/standard.h"
|
#include "script/standard.h"
|
||||||
#include "script/sigcache.h"
|
#include "script/sigcache.h"
|
||||||
#include "scheduler.h"
|
#include "scheduler.h"
|
||||||
|
@ -16,5 +16,8 @@ class CBlockIndex;
|
|||||||
*/
|
*/
|
||||||
double GetDifficulty(const CBlockIndex* blockindex = nullptr);
|
double GetDifficulty(const CBlockIndex* blockindex = nullptr);
|
||||||
|
|
||||||
|
/** Callback for when block tip changed. */
|
||||||
|
void RPCNotifyBlockChange(bool ibd, const CBlockIndex *);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -198,7 +198,6 @@ bool StartRPC();
|
|||||||
void InterruptRPC();
|
void InterruptRPC();
|
||||||
void StopRPC();
|
void StopRPC();
|
||||||
std::string JSONRPCExecBatch(const UniValue& vReq);
|
std::string JSONRPCExecBatch(const UniValue& vReq);
|
||||||
void RPCNotifyBlockChange(bool ibd, const CBlockIndex *);
|
|
||||||
|
|
||||||
// Retrieves any serialization flags requested in command line argument
|
// Retrieves any serialization flags requested in command line argument
|
||||||
int RPCSerializationFlags();
|
int RPCSerializationFlags();
|
||||||
|
Loading…
Reference in New Issue
Block a user