diff options
author | Anthony Towns <aj@erisian.com.au> | 2022-09-01 18:44:33 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2022-09-01 20:54:35 +1000 |
commit | 0a7fc428978c4db416fdcf9bf0b79de17d0558d7 (patch) | |
tree | c30f9651ce0254f883e6b9e1ffa2bfc1deda7120 /src/net.h | |
parent | d394156b99d6b9a99aedee78658310d169ca188d (diff) |
net: make CNode::m_prefer_evict const
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -338,6 +338,7 @@ struct CNodeOptions { NetPermissionFlags permission_flags = NetPermissionFlags::None; std::unique_ptr<i2p::sam::Session> i2p_sam_session = nullptr; + bool prefer_evict = false; }; /** Information about a peer */ @@ -399,7 +400,7 @@ public: * from the wire. This cleaned string can safely be logged or displayed. */ std::string cleanSubVer GUARDED_BY(m_subver_mutex){}; - bool m_prefer_evict{false}; // This peer is preferred for eviction. (treated as const) + const bool m_prefer_evict{false}; // This peer is preferred for eviction. bool HasPermission(NetPermissionFlags permission) const { return NetPermissions::HasFlag(m_permissionFlags, permission); } |