HomePhabricator

[gui] intro: enable pruning by default unless disk is big

Description

[gui] intro: enable pruning by default unless disk is big

Summary:
Color the text "GB needed for full chain" orange for nodes that barely have enough space.

This concludes backport of Core PR16714 - part 5 of 5
Commit 9924bce317b96ab0c57efb99330abd11b6f16b9a
Depends on D7955

Test Plan:
Unmount the filesystem containing the bitcoin data, to trigger the intro screen to show on startup of bitcoin-qt.
Run src/qt/bitcoin-qt -regtest
In the intro screen, select a data directory on a filesystem with less than 10GB free space.
Verify that the message about the available space is yellow, and that the prune checkbox settings got checked.

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7956

Details

Provenance
Sjors Provoost <sjors@sprovoost.nl>Authored on Fri, Oct 16, 16:19
PiRKCommitted on Fri, Oct 16, 16:20
abc-botPushed on Fri, Oct 16, 16:25
Reviewer
Restricted Owners Package
Differential Revision
D7956: [gui] intro: enable pruning by default unless disk is big
Parents
rABC18cc9093aad6: [gui] intro: add prune preference
Branches
Unknown
Tags
Unknown