From 8b1e156143740a5548dc7b601d40fb141e6aae1c Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Fri, 25 Dec 2020 23:56:17 +0100 Subject: Add m_inbound_onion to AttemptToEvictConnection() and an `m_is_onion` struct member to NodeEvictionCandidate and tests. We'll use these in the peer eviction logic to protect inbound onion peers in addition to the existing protection of localhost peers. --- src/test/net_peer_eviction_tests.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test/net_peer_eviction_tests.cpp') diff --git a/src/test/net_peer_eviction_tests.cpp b/src/test/net_peer_eviction_tests.cpp index 418f5a4f71..517474bad4 100644 --- a/src/test/net_peer_eviction_tests.cpp +++ b/src/test/net_peer_eviction_tests.cpp @@ -36,6 +36,7 @@ std::vector GetRandomNodeEvictionCandidates(const int n_c /* nKeyedNetGroup */ random_context.randrange(100), /* prefer_evict */ random_context.randbool(), /* m_is_local */ random_context.randbool(), + /* m_is_onion */ random_context.randbool(), }); } return candidates; -- cgit v1.2.3