mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
fNetworkActive is not protected by a lock, use an atomic
This commit is contained in:
@@ -403,7 +403,7 @@ private:
|
|||||||
unsigned int nReceiveFloodSize;
|
unsigned int nReceiveFloodSize;
|
||||||
|
|
||||||
std::vector<ListenSocket> vhListenSocket;
|
std::vector<ListenSocket> vhListenSocket;
|
||||||
bool fNetworkActive;
|
std::atomic<bool> fNetworkActive;
|
||||||
banmap_t setBanned;
|
banmap_t setBanned;
|
||||||
CCriticalSection cs_setBanned;
|
CCriticalSection cs_setBanned;
|
||||||
bool setBannedIsDirty;
|
bool setBannedIsDirty;
|
||||||
|
|||||||
Reference in New Issue
Block a user