Page MenuHomePhabricator

[avalanche] Disconnect from the updated block tip handler before destructing the processor
ClosedPublic

Authored by Fabien on Jul 25 2025, 12:36.

Details

Summary

Make sure we can't reach a use after free issue where UpdatedBlockTip() is called after the peer manager has been destructed. This can only happen in tests because the normal node shutdown take cares of this already.

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Branch
avalanche_processor_disconnect_handler
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33976
Build 67421: Build Diffbuild-without-wallet · lint-circular-dependencies · build-clang-tidy · build-clang · build-debug · build-diff
Build 67420: arc lint + arc unit