Page MenuHomePhabricator

[net] Remove asmap argument from CNode::CopyStats()
ClosedPublic

Authored by PiRK on Jan 7 2022, 10:05.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC682cf70170d1: [net] Remove asmap argument from CNode::CopyStats()
Summary

This saves passing around a reference to the asmap std::vector<bool>.

This is a backport of core#22911 [4/4]
https://github.com/bitcoin/bitcoin/pull/22911/commits/853c4edb70f897a6a7165abaea4a303d7d448721

Depends on D10781

Test Plan

ninja all check-all

Compile and run the fuzzer:

cmake -GNinja .. -DCMAKE_C_COMPILER=$AFLPATH/afl-clang -DCMAKE_CXX_COMPILER=$AFLPATH/afl-clang++
ninja bitcoin-fuzzers
AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 AFL_SKIP_CPUFREQ=1 ${AFLPATH}/afl-fuzz -i ${DIR_FUZZ_IN}/net -o ${AFLOUT}/net -m250 -- src/test/fuzz/net

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Jan 7 2022, 10:05
Fabien requested changes to this revision.Jan 7 2022, 11:11
Fabien added a subscriber: Fabien.

Please build and run the fuzzer as part of your test plan

This revision now requires changes to proceed.Jan 7 2022, 11:11
PiRK requested review of this revision.Jan 10 2022, 07:32
PiRK edited the test plan for this revision. (Show Details)

Compile and run fuzzers as part of the test plan

This revision is now accepted and ready to land.Jan 10 2022, 09:49