aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2022-09-01 18:44:33 +1000
committerAnthony Towns <aj@erisian.com.au>2022-09-01 20:54:35 +1000
commit0a7fc428978c4db416fdcf9bf0b79de17d0558d7 (patch)
treec30f9651ce0254f883e6b9e1ffa2bfc1deda7120 /src/net.h
parentd394156b99d6b9a99aedee78658310d169ca188d (diff)
net: make CNode::m_prefer_evict const
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 2cf334f8a9..c4a24c6bdf 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);
}