Files
bitcoin/test/functional/feature_init.py
ismaelsadeeq c1313b199f init: wake genesis wait after ImportBlocks() returns
If shutdown interrupts ImportBlocks() before genesis activation,
no blockTip notification is sent. The wait predicate allows
shutdown to occur, but the condition variable is never
notified, so init can remain stuck waiting for genesis activation.

Notify the tip condition variable after ImportBlocks() returns so
interrupted imports wake the wait and let it observe the shutdown request.

Add test coverage for interrupting startup after reindex block files import
begins, which exercises the path where ImportBlocks() can return before genesis
activation.
2026-07-06 13:37:09 +01:00

16 KiB
Executable File