HomePhabricator

rpc: reduce LOCK(cs_main) scope in GetBlockChecked and getblock

Description

rpc: reduce LOCK(cs_main) scope in GetBlockChecked and getblock

Summary:
This is a partial backport of core#26308
https://github.com/bitcoin/bitcoin/pull/26308/commits/f00808e932c1f67bc76702a3f05778074b10025c

Depends on D13053

Test Plan:
With Clang and DEBUG:
ninja all check-all

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

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

Details

Provenance
Andrew Toth <andrewstoth@gmail.com>Authored on Oct 17 2022, 13:10
PiRKCommitted on Jan 25 2023, 07:18
PiRKPushed on Jan 25 2023, 07:19
Reviewer
Restricted Project
Differential Revision
D13054: rpc: reduce LOCK(cs_main) scope in GetBlockChecked and getblock
Parents
rABC3bac4c6a232f: zmq: remove LOCK(cs_main) from NotifyBlock
Branches
Unknown
Tags
Unknown