HomePhabricator

rpc: reduce LOCK(cs_main) scope in blockToJSON

Description

rpc: reduce LOCK(cs_main) scope in blockToJSON

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

Depends on D13054

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/D13055

Details

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