-
Notifications
You must be signed in to change notification settings - Fork 38.7k
refactor: move GetTransaction to node/transaction.cpp #22528
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
refactor: move GetTransaction to node/transaction.cpp #22528
Conversation
52d93cb to
8cc5beb
Compare
jnewbery
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.
Concept ACK. I have a branch that does exactly the same thing :)
can be reviewed with --color-moved
8cc5beb to
abc57e1
Compare
My bad, should have communicated before to avoid double work. Feel free to open yours and I'll happily review :) |
Not a problem at all! It's good to see that we separately arrived at the same answer :) |
|
concept ACK |
|
|
||
| EXPECTED_CIRCULAR_DEPENDENCIES=( | ||
| "chainparamsbase -> util/system -> chainparamsbase" | ||
| "index/txindex -> validation -> index/txindex" |
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.
🎉
promag
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.
Code review ACK abc57e1. With git show --color-moved=dimmed_zebra verified the move-only, #includes changes, added forward declarations and drop of circular dependency 🎉
|
Happy to re-ACK with #22383 (comment) |
|
Added a commit with jnewbery's comment/documentation follow-ups from #22383, as suggested by MarcoFalke. Was not sure if the RPC doc change is also appropriate to put in this PR (since it was only concerned with the |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones: If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Code review ACK f685a13 Thanks for doing this! |
|
crACK f685a13 |
|
Concept ACK Very nice to see the list of circular dependencies shrink :) |
|
Code review, test ACK f685a13 |
f685a13 to
d300c2c
Compare
|
Rebased on master (now that #22383 is merged, there is no need to include its commit anymore). |
|
Please don't force push, as this requires re-review. This is a GitHub bug that doesn't affect us. |
d300c2c to
f685a13
Compare
Ah, sorry wasn't aware that displaying the first commit is happening due to a GitHub bug (if I understood you correctly). Force-pushed back to how it was before. |
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 f685a13. Only changes since last review are new comment about reorg and bip30 and improved help text.
This PR is based on #22383, which should be reviewed first(merged by now).In yesterday's PR review club session to PR 22383, the idea of moving the function
GetTransaction(...)from src/validation.cpp to src/node/transaction.cpp came up. With this, the circular dependency "index/txindex -> validation -> index/txindex" is removed (see change inlint-circular-dependencies.sh). Thanks to jnewbery for suggesting and to sipa for providing historical background.Relevant IRC log:
The commit should be trivial to review with
--color-moved.