HomePhabricator

Close minor startup race between main and scheduler threads

Description

Close minor startup race between main and scheduler threads

Summary:
Don't schedule class PeerManagerImpl's background tasks from its
constructor, but instead do that from a separate method,
StartScheduledTasks(), that can be called later at the end of startup,
after other things, such as the active chain, are initialzed.

Backport of core#22577.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

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

Details

Provenance
Larry Ruane <larryruane@gmail.com>Authored on Jul 28 2021, 22:18
FabienCommitted on Oct 3 2022, 16:38
FabienPushed on Oct 3 2022, 16:38
Reviewer
Restricted Project
Differential Revision
D12118: Close minor startup race between main and scheduler threads
Parents
rABC3a90c9864d57: [Cashtab] Patched nav menu being cut off on some mobile views
Branches
Unknown
Tags
Unknown