Bugfix: Correct first-run free space checks#29678
Bugfix: Correct first-run free space checks#29678luke-jr wants to merge 4 commits intobitcoin:masterfrom
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/29678. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste 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. LLM Linter (✨ experimental)Possible places where comparison-specific test macros should replace generic comparisons:
2026-01-29 07:26:52 |
279c4ee to
847ad93
Compare
|
@hebasto can you follow up given the gui / translation Qs here. This also needs a rebase. |
|
Indeed, there is inconsistency in GB/GiB unit usage. For instance, the value of the Line 1707 in 45f757c Line 206 in 45f757c Concept ACK. It would be nice to mention the second commit changes in the PR description, no?
The GUI now uses "GB" (SI prefix) as a unit, based on the mindset of non-technical/non-CS users. @GBKS What are modern guidelines in this regard?
For the GUI, the conversion to/from GB is still used: Lines 26 to 34 in 45f757c |
I am curious about use cases where it is essential for the user to know the |
847ad93 to
c452d6c
Compare
murchandamus
left a comment
There was a problem hiding this comment.
All of these changes seem consistent to me.
Concept ACK on generally using GB to refer to 1,000,000,000 bytes and GiB to refer to 1024³ bytes everywhere.
|
(close-open for fresh GitHub CI, I guess the Cirrus failure can be ignored for now) |
|
Concept ACK |
Introduce `CeilDiv()` for integral ceiling division without the typical `(dividend + divisor - 1) / divisor` overflow. `CeilDiv()` asserts non-negative arguments and a non-zero divisor. Add unit tests covering return type deduction, max-value behavior, and divisor checks.
…pruned size rather than full blockchain size
c452d6c to
b1117e5
Compare
Introduce `CeilDiv()` for integral ceiling division without the typical `(dividend + divisor - 1) / divisor` overflow. `CeilDiv()` asserts non-negative arguments and a non-zero divisor. Add unit tests covering return type deduction, max-value behavior, and divisor checks. Github-Pull: bitcoin#29678 Rebased-From: c41dd35
…quirement Github-Pull: bitcoin#29678 Rebased-From: 8b33935
|
🐙 This pull request conflicts with the target branch and needs rebase. |
It's not clear what
m_assumed_*_sizeare actually set based on, but historically it was in GB, not GiB, and that's still used in the GUI which is more user-facing.Could just as easily change the GUI if GiB is preferred.