Page MenuHomePhabricator

Close minor startup race between main and scheduler threads
ClosedPublic

Authored by Fabien on Oct 3 2022, 13:48.

Details

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

Diff Detail

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