This removes usage of g_chainman and ::ActiveChainstate() in the Avalanche processor.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABCcba2d5ffc3cb: [avalanche] Pass chainman to Processor
ninja all check-all
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 19543 Build 38805: Build Diff build-clang-tidy · build-without-wallet · build-clang · lint-circular-dependencies · build-diff · build-debug Build 38804: arc lint + arc unit
Event Timeline
src/avalanche/processor.h | ||
---|---|---|
98 | Is it safe ? Did you check that the ChainstateManager cannot be destructed before the Processor ? |
src/avalanche/processor.h | ||
---|---|---|
98 | If it does, then the problem is clearly not with this patch, but indeed, checking is necessary. |
src/avalanche/processor.h | ||
---|---|---|
98 | So I checked that the ChainStateManager is always destroyed last in init.cpp and in the test fixture. But do you guys mean to say that this member should be somehow made foolproof by using some kind of exotic pointer rather than a reference? |
src/avalanche/processor.h | ||
---|---|---|
98 | Maybe pass a NodeContext to wrap the chainstate in a pointer? |