diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2016-10-31 17:06:15 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2016-10-31 17:17:18 -0400 |
commit | aff6584e09938768838a768b67722db553cf8ef4 (patch) | |
tree | 3d4053d1eb40ab7452a5fe6603d5805f196e8941 /src/net.h | |
parent | 3d69ecb4edeb80003a1a41442e320898a30dbd9c (diff) |
net: constify a few CNode vars to indicate that they're threadsafe
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -589,7 +589,7 @@ public: bool fFeeler; // If true this node is being used as a short lived feeler. bool fOneShot; bool fClient; - bool fInbound; + const bool fInbound; bool fNetworkNode; bool fSuccessfullyConnected; bool fDisconnect; @@ -603,7 +603,7 @@ public: CCriticalSection cs_filter; CBloomFilter* pfilter; int nRefCount; - NodeId id; + const NodeId id; const uint64_t nKeyedNetGroup; protected: @@ -679,8 +679,8 @@ private: uint64_t nLocalHostNonce; // Services offered to this peer - ServiceFlags nLocalServices; - int nMyStartingHeight; + const ServiceFlags nLocalServices; + const int nMyStartingHeight; public: NodeId GetId() const { |