File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 16
16
#include < warnings.h>
17
17
18
18
19
- static RecursiveMutex cs_nTimeOffset ;
20
- static int64_t nTimeOffset GUARDED_BY (cs_nTimeOffset ) = 0;
19
+ static Mutex g_timeoffset_mutex ;
20
+ static int64_t nTimeOffset GUARDED_BY (g_timeoffset_mutex ) = 0;
21
21
22
22
/* *
23
23
* "Never go to sea with two chronometers; take one or three."
@@ -28,7 +28,7 @@ static int64_t nTimeOffset GUARDED_BY(cs_nTimeOffset) = 0;
28
28
*/
29
29
int64_t GetTimeOffset ()
30
30
{
31
- LOCK (cs_nTimeOffset );
31
+ LOCK (g_timeoffset_mutex );
32
32
return nTimeOffset;
33
33
}
34
34
@@ -46,7 +46,7 @@ static int64_t abs64(int64_t n)
46
46
47
47
void AddTimeData (const CNetAddr& ip, int64_t nOffsetSample)
48
48
{
49
- LOCK (cs_nTimeOffset );
49
+ LOCK (g_timeoffset_mutex );
50
50
// Ignore duplicates
51
51
static std::set<CNetAddr> setKnown;
52
52
if (setKnown.size () == BITCOIN_TIMEDATA_MAX_SAMPLES)
You can’t perform that action at this time.
0 commit comments