-
Notifications
You must be signed in to change notification settings - Fork 37.7k
assumeutxo state and locking cleanup #28608
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
base: master
Are you sure you want to change the base?
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/28608. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. 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. |
Concept ACK, aside from the linked discussions, this would also resolve a few more review comments in #27596. |
Drop from 26.0 milestone? |
Why? |
nm. I missed the context. |
Sorry about the noise. |
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
TryDownloadingHistoricalBlocks( | ||
*peer, | ||
get_inflight_budget(), | ||
vToDownload, m_chainman.GetBackgroundSyncTip(), | ||
Assert(m_chainman.GetSnapshotBaseBlock())); | ||
vToDownload, historical_blocks->first, historical_blocks->second); |
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.
If practical, it would be nice to have this change in a seperate commit from the (simpler) changes above.
f870170
to
c6122e4
Compare
4ee775e
to
decf338
Compare
|
Not sure what the status here is? It would be good to rebase, so that reviewers can take a look, or close, so that it can be grabbed up, if there is need. |
I've just been working on other things but I want to rebase this and split it up, probably next week I think. Of course if anyone wants to work on this or some smaller part of it, I'd welcome that and be very happy to help. |
🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the Possibly this is due to a silent merge conflict (the changes in this pull request being Leave a comment here, if you need help tracking down a confusing failure. |
🐙 This pull request conflicts with the target branch and needs rebase. |
⌛ There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
4 similar comments
⌛ There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
⌛ There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
⌛ There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
⌛ There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
Hey hi, I can work on this given that you have been stuck with other commitments. Should I work on this or open a separate pr, either way works for me? |
re: #28608 (comment)
Hi, feel free to work on anything here and open a separate PR. Note that this PR is trying to do two things:
I'm not sure which of these you may be more interested in but progress has been very slow on the first and nonexistent on the second. I think different approaches are possible and the two things above are not tied together so a lot could be done here depending on your goals. |
I will look into this and get back here soon! |
This is based on #29370. The non-base commits are:
35d0519c4728
refactor: Replace ChainstateManager IBD and snapshot chainstates with flat list of chainstates0bb0db780ff6
brokenThis is a draft PR to follow up on comments about simplifying assumetxo state representation #28562 (comment), #27746 (comment), #24232 (comment) so validation code is less complicated, and each chainstate is handled independently without references to other assumeutxo chainstates everywhere.
Implementation is not done, but the plan is also for this PR to make two functional improvements: