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.cpp | |
parent | d394156b99d6b9a99aedee78658310d169ca188d (diff) |
net: make CNode::m_prefer_evict const
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index c6448e4798..1062516aa1 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1030,9 +1030,9 @@ void CConnman::CreateNodeFromAcceptedSocket(std::unique_ptr<Sock>&& sock, inbound_onion, CNodeOptions{ .permission_flags = permissionFlags, + .prefer_evict = discouraged, }); pnode->AddRef(); - pnode->m_prefer_evict = discouraged; m_msgproc->InitializeNode(*pnode, nodeServices); LogPrint(BCLog::NET, "connection from %s accepted\n", addr.ToString()); @@ -2734,6 +2734,7 @@ CNode::CNode(NodeId idIn, addrBind{addrBindIn}, m_addr_name{addrNameIn.empty() ? addr.ToStringIPPort() : addrNameIn}, m_inbound_onion{inbound_onion}, + m_prefer_evict{node_opts.prefer_evict}, nKeyedNetGroup{nKeyedNetGroupIn}, id{idIn}, nLocalHostNonce{nLocalHostNonceIn}, |