-
Notifications
You must be signed in to change notification settings - Fork 36.2k
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
Report progress in ReplayBlocks while rolling forward #13310
Conversation
Should only report each 5% for instance? |
|
@Empact IMO the receiver is the one that should throttle, because he is the one that knows the resolution. Anyway, looks like |
Yep you're right on |
I think it should report every 1% change. But since changes less than 1% won't be visible, maybe check if the percentage have actually changed before updating. Calling |
I don't mind doing something like that...
But how do you know? What if you have a progress bar with, for instance, 200px width? It should report 0.5%. |
Right now But I agree: |
Actually I was thinking in something like |
I would personally prefer giving it a float since I feel like it would be more flexible. But then again, why not do both? We could just overload the function. |
What is the best test plan to test this? |
The last travis run for this pull request was 60 days ago and is thus outdated. To trigger a fresh travis build, this pull request should be closed and re-opened. |
Anything left to do here? |
utACK b16ab9a |
Not really—I think the most important thing to review here is that divide by zero never happens. |
Summary: b16ab9af07f802cc769c2443df1c637e8e12ab80 Report progress in ReplayBlocks while rolling forward (João Barbosa) Pull request description: Fixes #13303. --- Backport of Core [[bitcoin/bitcoin#13310 | PR13310]] Test Plan: ninja check-all Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D6849
…rward b16ab9a Report progress in ReplayBlocks while rolling forward (João Barbosa) Pull request description: Fixes bitcoin#13303. Tree-SHA512: 9375bda03bd2527018b9d24a25c82fa01a841e41ae2cb5307be61af19e2b759d3a7db76852baba9a286fbcb52f70f427a5ab4375df08215ac439e47e73633e54
…rward b16ab9a Report progress in ReplayBlocks while rolling forward (João Barbosa) Pull request description: Fixes bitcoin#13303. Tree-SHA512: 9375bda03bd2527018b9d24a25c82fa01a841e41ae2cb5307be61af19e2b759d3a7db76852baba9a286fbcb52f70f427a5ab4375df08215ac439e47e73633e54
…rward b16ab9a Report progress in ReplayBlocks while rolling forward (João Barbosa) Pull request description: Fixes bitcoin#13303. Tree-SHA512: 9375bda03bd2527018b9d24a25c82fa01a841e41ae2cb5307be61af19e2b759d3a7db76852baba9a286fbcb52f70f427a5ab4375df08215ac439e47e73633e54
…rward b16ab9a Report progress in ReplayBlocks while rolling forward (João Barbosa) Pull request description: Fixes bitcoin#13303. Tree-SHA512: 9375bda03bd2527018b9d24a25c82fa01a841e41ae2cb5307be61af19e2b759d3a7db76852baba9a286fbcb52f70f427a5ab4375df08215ac439e47e73633e54
Fixes #13303.