Skip to content

Commit 5932478

Browse files
committed
[net] Remove CConnMan::SetAsmap()
CAddrMan::m_asmap is now set directly in AppInitMain() so CConnMan::SetAsmap() is no longer required.
1 parent 50fd770 commit 5932478

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/net.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,6 @@ class CConnman
949949
*/
950950
std::chrono::microseconds PoissonNextSendInbound(std::chrono::microseconds now, std::chrono::seconds average_interval);
951951

952-
void SetAsmap(std::vector<bool> asmap) { addrman.m_asmap = std::move(asmap); }
953-
954952
/** Return true if we should disconnect the peer for failing an inactivity check. */
955953
bool ShouldRunInactivityChecks(const CNode& node, std::optional<int64_t> now=std::nullopt) const;
956954

src/test/fuzz/connman.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@ FUZZ_TARGET_INIT(connman, initialize_connman)
103103
[&] {
104104
connman.RemoveAddedNode(random_string);
105105
},
106-
[&] {
107-
const std::vector<bool> asmap = ConsumeRandomLengthBitVector(fuzzed_data_provider);
108-
if (SanityCheckASMap(asmap)) {
109-
connman.SetAsmap(asmap);
110-
}
111-
},
112106
[&] {
113107
connman.SetNetworkActive(fuzzed_data_provider.ConsumeBool());
114108
},

0 commit comments

Comments
 (0)