aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/node_eviction.cpp
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-12-25 23:56:17 +0100
committerJon Atack <jon@atack.com>2021-03-19 20:11:45 +0100
commit8b1e156143740a5548dc7b601d40fb141e6aae1c (patch)
tree190c7430ca8c2cdf81ead7b20f718cae19ba1348 /src/test/fuzz/node_eviction.cpp
parent72e30e8e03f880eba4bd1c3fc18b5558d8cef680 (diff)
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.
Diffstat (limited to 'src/test/fuzz/node_eviction.cpp')
-rw-r--r--src/test/fuzz/node_eviction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/fuzz/node_eviction.cpp b/src/test/fuzz/node_eviction.cpp
index 603d520cf5..70ffc6bf37 100644
--- a/src/test/fuzz/node_eviction.cpp
+++ b/src/test/fuzz/node_eviction.cpp
@@ -31,6 +31,7 @@ FUZZ_TARGET(node_eviction)
/* nKeyedNetGroup */ fuzzed_data_provider.ConsumeIntegral<uint64_t>(),
/* prefer_evict */ fuzzed_data_provider.ConsumeBool(),
/* m_is_local */ fuzzed_data_provider.ConsumeBool(),
+ /* m_is_onion */ fuzzed_data_provider.ConsumeBool(),
});
}
// Make a copy since eviction_candidates may be in some valid but otherwise