File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -139,15 +139,15 @@ struct HTTPPathHandler
139
139
// ! libevent event loop
140
140
static struct event_base * eventBase = nullptr ;
141
141
// ! HTTP server
142
- struct evhttp * eventHTTP = nullptr ;
142
+ static struct evhttp * eventHTTP = nullptr ;
143
143
// ! List of subnets to allow RPC connections from
144
144
static std::vector<CSubNet> rpc_allow_subnets;
145
145
// ! Work queue for handling longer requests off the event loop thread
146
146
static WorkQueue<HTTPClosure>* workQueue = nullptr ;
147
147
// ! Handlers for (sub)paths
148
- std::vector<HTTPPathHandler> pathHandlers;
148
+ static std::vector<HTTPPathHandler> pathHandlers;
149
149
// ! Bound listening sockets
150
- std::vector<evhttp_bound_socket *> boundSockets;
150
+ static std::vector<evhttp_bound_socket *> boundSockets;
151
151
152
152
/* * Check if a network address is allowed to access the HTTP server */
153
153
static bool ClientAllowed (const CNetAddr& netaddr)
@@ -420,7 +420,7 @@ bool UpdateHTTPServerLogging(bool enable) {
420
420
#endif
421
421
}
422
422
423
- std::thread threadHTTP;
423
+ static std::thread threadHTTP;
424
424
static std::vector<std::thread> g_thread_http_workers;
425
425
426
426
void StartHTTPServer ()
Original file line number Diff line number Diff line change 74
74
#include < zmq/zmqrpc.h>
75
75
#endif
76
76
77
- bool fFeeEstimatesInitialized = false ;
77
+ static bool fFeeEstimatesInitialized = false ;
78
78
static const bool DEFAULT_PROXYRANDOMIZE = true ;
79
79
static const bool DEFAULT_REST_ENABLE = false ;
80
80
static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false ;
Original file line number Diff line number Diff line change 8
8
#include < util/system.h>
9
9
#include < warnings.h>
10
10
11
- CCriticalSection cs_warnings;
12
- std::string strMiscWarning GUARDED_BY (cs_warnings);
13
- bool fLargeWorkForkFound GUARDED_BY (cs_warnings) = false;
14
- bool fLargeWorkInvalidChainFound GUARDED_BY (cs_warnings) = false;
11
+ static RecursiveMutex cs_warnings;
12
+ static std::string strMiscWarning GUARDED_BY (cs_warnings);
13
+ static bool fLargeWorkForkFound GUARDED_BY (cs_warnings) = false;
14
+ static bool fLargeWorkInvalidChainFound GUARDED_BY (cs_warnings) = false;
15
15
16
16
void SetMiscWarning (const std::string& strWarning)
17
17
{
You can’t perform that action at this time.
0 commit comments