mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
Settings: Grouped numbers save a smaller storage or mempool limit #1002
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#1002
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I reproduced the storage limit accepting
1,000GB and saving 1 GB. The mempool limit also accepts10,000MB and saves 10 MB. Neither field reports a validation error.To reproduce with an
en_USlocale and a disposable regtest profile:1,000, then press Enter.1.10,000as the size limit and press Enter.10.settings.json.The recorded settings were
"prune":"953"and"maxmempool":10. Entering ungrouped1000in the storage field correctly saved"prune":"953674".Qt's validator accepts the grouping separator, while the save handlers use
parseInt, which stops at the comma. We should accept the same number syntax in validation and conversion. Grouped and ungrouped input should save the same value, or unsupported formatting should be rejected before saving.Tested on
qt6at09c6de77d7f36bf7fa07c354ebeea51105c447a3, macOS arm64, Qt 6.9.0. The offscreen reproduction used actual key events, with test-driver support added for comma and Enter. The production validators, setting handlers and backend were unchanged. I checked the saved values; I didn't run a pruning or mempool-eviction experiment.