HomePhabricator

Split the inv message reception processing in logical blocks by inv type

Description

Split the inv message reception processing in logical blocks by inv type

Summary:
This is a minor refactor that split the if/elseif/else block for block
and tx inv reception into 2 separated logical blocks. Each block holds
the cs_main lock locally so the scope is slightly reduced.

Depends on D9590.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D9591

Details

Provenance
FabienAuthored on May 26 2021, 19:42
FabienPushed on May 27 2021, 08:02
Reviewer
Restricted Project
Differential Revision
D9591: Split the inv message reception processing in logical blocks by inv type
Parents
rABC229e3d125262: Extract out the inventory logging to a lambda
Branches
Unknown
Tags
Unknown