Page MenuHomePhabricator

net: reduce LOCK(cs_main) scope in GETBLOCKTXN
ClosedPublic

Authored by PiRK on Jun 14 2025, 14:05.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCca505b1524f0: net: reduce LOCK(cs_main) scope in GETBLOCKTXN
Summary

Also adds a static assertion that MAX_BLOCKTXN_DEPTH <= MIN_BLOCKS_TO_KEEP

from the PR description:

Inspired by core#26308

(backported in D13052 -- D13057)

This is a partial backport of core#26326
https://github.com/bitcoin/bitcoin/pull/26326/commits/613a45cd4b5482aedbdc7c61c839ea05996935c6

Test Plan

With Debug:
ninja all check-all

Diff Detail

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