HomePhabricator

Split cs_main lock when sending getdata between inv types

Description

Split cs_main lock when sending getdata between inv types

Summary:
It is necessary to release the lock for dealing with proof getdata
requests. The state does not need to be accessed in the second lock
block, which should give confidence that this will not cause any issue.

Depends on D9592.

Test Plan:
With clang and debug:

ninja all check-all

Run the tsan build.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
FabienAuthored on May 26 2021, 20:16
FabienPushed on May 27 2021, 08:06
Reviewer
Restricted Project
Differential Revision
D9593: Split cs_main lock when sending getdata between inv types
Parents
rABCf6ce5cf20243: Move the getdata content flush and logging to a lambda
Branches
Unknown
Tags
Unknown