refactor: move GetTransaction to node/transaction.cpp#22528
refactor: move GetTransaction to node/transaction.cpp#22528maflcko merged 2 commits intobitcoin:masterfrom
Conversation
52d93cb to
8cc5beb
Compare
jnewbery
left a comment
There was a problem hiding this comment.
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" |
|
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. |
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.