Page MenuHomePhabricator

net: Simplify ProcessGetBlockData execution by removing send flag.
ClosedPublic

Authored by PiRK on Mar 13 2023, 12:31.

Details

Summary

Setting the send flag to false can be replaced by simply returning.

This is a partial backport of core#21235
https://github.com/bitcoin/bitcoin/pull/21235/commits/fae77b9e6dc9e59b355d56df49c4d9685b6f40a4

Depends on D13309

Test Plan

ninja all check-all

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Mar 13 2023, 12:31
src/net_processing.cpp
2570 ↗(On Diff #38496)

The negation and early return is done in the next commit, with the indentation change in the following block

This revision is now accepted and ready to land.Mar 13 2023, 12:47