Page MenuHomePhabricator

Move DisconnectedBlockTransactions to its own file
ClosedPublic

Authored by Fabien on Mar 26 2024, 11:29.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCd6b116b59875: Move DisconnectedBlockTransactions to its own file
Summary

This removes the circular dependency txmempool -> validation -> txmempool.

Partial backport of core#28385.

Depends on D15785.

Test Plan
ninja all check-all

Diff Detail

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

Event Timeline

Fabien published this revision for review.Mar 26 2024, 14:31
PiRK added inline comments.
test/lint/lint-circular-dependencies.sh
29 ↗(On Diff #46484)

This one is a bit surprising. It was introduced in https://reviews.bitcoinabc.org/D15279, but the avalanche includes in txmempool.cpp don't seem to be mandatory.

Don't introduce the avalanche/processor -> validation -> txmempool -> avalanche/processor circular dependency

test/lint/lint-circular-dependencies.sh
29 ↗(On Diff #46484)

Good catch, the includes are not needed and have been removed

This revision is now accepted and ready to land.Mar 27 2024, 07:35