Page MenuHomePhabricator

Correct units for "-dbcache" and "-prune"
AbandonedPublic

Authored by PiRK on Oct 6 2020, 13:50.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Summary

All dbcache-related values in the code are measured in MiB (not in
megabytes, MB) or in bytes.
The GUI "-prune" values in GB are translated to the node values in MiB
correctly. The maximum of the "-prune" QSpinBox is not limited by the
default value of 99 (GB).
Also, this improves log readability.

Backport of Core PR15163
It also includes a commit that fixes a bug introduced by this PR: 4ddeb2f860eee98fbe94725ea8885368068a03f2

Test Plan

ninja && ninja check

Install bitcoin-qt, check that the prune QSpinBox widget is no longer limited to values < 99.

Diff Detail

Event Timeline

Owners added a reviewer: Restricted Owners Package.Oct 6 2020, 13:50
PiRK requested review of this revision.Oct 6 2020, 13:50

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

include commit 4ddeb2f860eee98fbe94725ea8885368068a03f2 that fixes a bug in PR15163

Widget range was set after loading the user configuration. So possibly the configuration
was ignored if the value was above the default widget range 0--99

PiRK edited the test plan for this revision. (Show Details)
deadalnix requested changes to this revision.Oct 6 2020, 14:58
deadalnix added a subscriber: deadalnix.

Because PR15801 fixes a bug introduced here, it make sense to merge both. What remain of PR15801 is trivial.

This revision now requires changes to proceed.Oct 6 2020, 14:58

I did as suggested, merged the last commit from D7782 into this diff. The resulting diff ended up being D7782, when I expected it to be this one. I will abandon D7781.