diff options
author | John Newbery <john@johnnewbery.com> | 2021-09-01 11:24:46 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-09-07 15:24:14 +0100 |
commit | 853c4edb70f897a6a7165abaea4a303d7d448721 (patch) | |
tree | 0f2e63ecf7e36dbf39b35505ddd35dd8d1b93000 /src/test | |
parent | 9fd5618610e91e3949536c5122cf31eb58c9aa6b (diff) |
[net] Remove asmap argument from CNode::CopyStats()
This saves passing around a reference to the asmap std::vector<bool>.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/fuzz/net.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/test/fuzz/net.cpp b/src/test/fuzz/net.cpp index 0929376045..bd1bb79d0e 100644 --- a/src/test/fuzz/net.cpp +++ b/src/test/fuzz/net.cpp @@ -39,12 +39,8 @@ FUZZ_TARGET_INIT(net, initialize_net) node.CloseSocketDisconnect(); }, [&] { - const std::vector<bool> asmap = ConsumeRandomLengthBitVector(fuzzed_data_provider); - if (!SanityCheckASMap(asmap, 128)) { - return; - } CNodeStats stats; - node.CopyStats(stats, asmap); + node.CopyStats(stats); }, [&] { const CNode* add_ref_node = node.AddRef(); |