forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 725
[Tests] Add linter for circular dependencies and start fixing them #2641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
random-zebra
merged 3 commits into
PIVX-Project:master
from
random-zebra:202111_circular-dependencies
Nov 25, 2021
Merged
[Tests] Add linter for circular dependencies and start fixing them #2641
random-zebra
merged 3 commits into
PIVX-Project:master
from
random-zebra:202111_circular-dependencies
Nov 25, 2021
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> based on bitcoin/bitcoin@5c613aa Protects against added circular depencies, makes it explicit in the code when circular dependencies have been removed. Modeled after EXPECTED_BOOST_INCLUDES in lint-includes.sh
random-zebra
commented
Nov 23, 2021
This was referenced Nov 23, 2021
furszy
approved these changes
Nov 24, 2021
furszy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice :). Now that this problems are visible, anyone can work on them 🚜.
ACK 95d4011
Fuzzbawls
approved these changes
Nov 25, 2021
Collaborator
Fuzzbawls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 95d4011
furszy
added a commit
that referenced
this pull request
Nov 29, 2021
… extracting shutdown.h 33ddc5d Break circular dependency: init -> * -> init by extracting shutdown.h (random-zebra) b09422f Cleanup: remove unused init.h includes (random-zebra) Pull request description: As per bitcoin#13235. Based on top of: - [x] #2641 ACKs for top commit: furszy: Code ACK 33ddc5d Tree-SHA512: 56f9fe8fe83e31f32e3aad7d0a7e6c5ab015ca0d60881eca1ab30949610b19128598072538819aae03521bd2f7976229128ff9fcdf607079e4e803fda1705e22
furszy
added a commit
that referenced
this pull request
Nov 30, 2021
50fb779 Refactor: remove circ dependency checkpoints <-> chainparams (random-zebra) 9b97cf0 Refactor: remove circ dependency checkpoints <-> validation (random-zebra) Pull request description: Based on top of - [x] #2641 This removes two groups of circular dependencies: 1. checkpoints <-> validation By moving `GetLastCheckpoint()` function to validation.cpp (as it's only used by `ContextualCheckBlockHeader`). 2. checkpoints <-> chainparams By moving `CCheckpointData` declaration to chainparams (where the per-network checkpoint data is defined), thus making chainparams independent from checkpoints. ACKs for top commit: furszy: re-ACK 50fb779 Tree-SHA512: 4d669ee6388d8a75301a7d841f82b74d5b46fe64099ab2162510206d646839802f1e9978039486633e0d11cdb191f5a57ef116202ec4faebc2bf856b398b92f5
random-zebra
added a commit
that referenced
this pull request
Dec 1, 2021
…saction <-> script/standard e55b0dc Refactor: remove circ depend. primitives/transaction <-> script/standard (random-zebra) Pull request description: by moving `GetKeyIDFromUTXO` out of `CTxOut`, making it a static function of `blocksignature.cpp`, which is the only place using it. based on top of: - [x] #2641 ACKs for top commit: furszy: ACK e55b0dc Tree-SHA512: c6c34e20dd2bf7f8fdadb6865f8d3253fd15e45e0b24ebb9e1f88c325bcc88c511d29926ceca6ee02f4ba6065b9a819105e0e414b9725e24b21bfbcb084966ba
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backports from upstream a shell script which uses the the python script
circular-dependencies.py(in devtools) and gives a convenient feedback about any dependency introduced and/or removed.This will be run by GA on any PR (as part of
lint-all.sh)Also, start nuking the first easy circular dependencies caused by unneeded header imports.