mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-12 15:52:40 +02:00
[net] Remove asmap argument from CNode::CopyStats()
This saves passing around a reference to the asmap std::vector<bool>.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user