Skip to content

Commit 8d8f28d

Browse files
committed
refactor: Move RPCNotifyBlockChange out of rpc/server.h
1 parent e6dcfee commit 8d8f28d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/init.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "policy/policy.h"
2828
#include "rpc/server.h"
2929
#include "rpc/register.h"
30+
#include "rpc/blockchain.h"
3031
#include "script/standard.h"
3132
#include "script/sigcache.h"
3233
#include "scheduler.h"

src/rpc/blockchain.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ class CBlockIndex;
1616
*/
1717
double GetDifficulty(const CBlockIndex* blockindex = nullptr);
1818

19+
/** Callback for when block tip changed. */
20+
void RPCNotifyBlockChange(bool ibd, const CBlockIndex *);
21+
1922
#endif
2023

src/rpc/server.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ bool StartRPC();
198198
void InterruptRPC();
199199
void StopRPC();
200200
std::string JSONRPCExecBatch(const UniValue& vReq);
201-
void RPCNotifyBlockChange(bool ibd, const CBlockIndex *);
202201

203202
// Retrieves any serialization flags requested in command line argument
204203
int RPCSerializationFlags();

0 commit comments

Comments
 (0)