You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/masternode/sync.h
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,10 @@
5
5
#defineBITCOIN_MASTERNODE_SYNC_H
6
6
7
7
#include<atomic>
8
+
#include<memory>
8
9
#include<string>
9
10
10
-
classCConnman;
11
11
classCBlockIndex;
12
-
classCMasternodeSync;
13
-
classCNetFulfilledRequestManager;
14
12
15
13
/** Default for -syncmempool */
16
14
staticconstboolDEFAULT_SYNC_MEMPOOL = true;
@@ -25,10 +23,16 @@ static constexpr int MASTERNODE_SYNC_TICK_SECONDS = 6;
25
23
staticconstexprintMASTERNODE_SYNC_TIMEOUT_SECONDS = 30; // our blocks are 2.5 minutes so 30 seconds should be fine
26
24
staticconstexprintMASTERNODE_SYNC_RESET_SECONDS = 900; // Reset fReachedBestHeader in CMasternodeSync::Reset if UpdateBlockTip hasn't been called for this seconds
27
25
26
+
classNodeSyncNotifier
27
+
{
28
+
public:
29
+
virtualvoidSyncReset() = 0;
30
+
virtualvoidSyncFinished() = 0;
31
+
};
32
+
28
33
//
29
34
// CMasternodeSync : Sync masternode assets in stages
0 commit comments