-
Notifications
You must be signed in to change notification settings - Fork 37.7k
refactor: Move more stuff to blockstorage #21727
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
Conversation
fad59d8
to
fa8cf6f
Compare
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. |
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 fa8cf6f. Always nice to see a nice chunk of code moved from validation.cpp. I agree this block storage related code doesn't belong there.
Verified commit by commit, with the given instructions, easy to review and to reason about. Only detail is that AbortNode
is moved early since it is needed in an upcoming commit.
fa8cf6f
to
fab20c8
Compare
Rebased.
|
Concept ACK I don't know if that would belong in this PR or in a follow-up PR, but perhaps we want to introduce |
I think a namespace is not the right solution here. Blockstorage is inherently stateful, so a class makes more sense. I expect that |
Can be reviewed with --color-moved=dimmed-zebra
However, keep a declaration in validation to make it possible to move smaller chunks to blockstorage without breaking compilation. Also, expose AbortNode in the header. Can be reviewed with --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
Can be reviewed with --word-diff-regex=. --ignore-all-space
fab20c8
to
fa09a9e
Compare
ACK fa09a9e |
ACK fa09a9e
|
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.
🕵️ @sipa has been requested to review this pull request as specified in the REVIEWERS file. |
Code review ACK fa09a9e |
TODO doesn't really make sense. It would turn some public global variables into private global variables, but really they shouldn't be global variables at all. They should be block manager member variables or chainstate manager member variables. TODO was added by MarcoFalke <falke.marco@gmail.com> in fa247a3 in bitcoin#21727 and noticed by Samuel Dobson <dobsonsa68@gmail.com> bitcoin#23497 (comment)
TODO doesn't really make sense. It would turn some public global variables into private global variables, but really they shouldn't be global variables at all. They should be block manager member variables or chainstate manager member variables. TODO was added by MarcoFalke <falke.marco@gmail.com> in fa247a3 in bitcoin#21727 and noticed by Samuel Dobson <dobsonsa68@gmail.com> bitcoin#23497 (comment)
TODO doesn't really make sense. It would turn some public global variables into private global variables, but really they shouldn't be global variables at all. They should be block manager member variables or chainstate manager member variables. TODO was added by MarcoFalke <falke.marco@gmail.com> in fa247a3 in bitcoin#21727 and noticed by Samuel Dobson <dobsonsa68@gmail.com> bitcoin#23497 (comment)
See #21575