mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Returning Enable listening to its saved value can disable listening after restart #1089
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#1089
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?
Returning Enable listening to its saved on value can delete the setting that made it effective. The switch remains on for the current session, but the next restart turns listening off.
To reproduce:
listensetting. Start with-connect=0 -networkactive=0 -natpmp=0 -discover=0 -listenonion=0.settings.jsoncontains"listen": true.Turning the switch off writes
"listen": false. Turning it back on removes the key entirely, although the switch displays on. After restart, the switch is off and the TCP listening port is closed. Core logs:The first restart demonstrates that explicit listening works with this configuration. The off/on round trip should restore that same saved choice and preserve it across the next restart.
The problem is in QML’s settings persistence.
GuiOverrideValue()removestruebecause it equalsDEFAULT_LISTEN. However, without the explicit override, the next startup applies the different default implied byconnect=0. Core is following the configuration it receives.Related to #588 and #883. The explicit-listen preservation in #883 applies during onboarding; its current runtime override helper retains this erasure path.
Observed on merged
qt6at6e54a48ab571, macOS / Qt 6.9, using the full application with isolated offscreen regtest fixtures. Saved settings, Core’s startup log and the actual TCP port agree. Networking remained disabled with zero peers; the port check used localhost. This report is limited to the reproduced listening transition.