darosior
commented at 6:10 pm on October 31, 2024:
member
It prevented the GUI from starting when its settings.json had the -upnp option set. This also doesn’t prevent the node from running, so this error didn’t need to be fatal.
Thanks to Sjors for bringing attention to what i broke and to Maflcko for suggesting a simple short term fix.
It prevented the GUI from starting when its settings.json had the -upnp option set. This also doesn't
prevent the node from running, so this error didn't need to be fatal.
Thanks to Sjors for bringing attention to what i broke and to Maflcko for suggestion a simple short
term fix.
a1b3ccae4b
DrahtBot
commented at 6:10 pm on October 31, 2024:
contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
maflcko
commented at 6:18 pm on October 31, 2024:
member
lgtm ACKa1b3ccae4be82297fd20f5be15a03eeb477507d0
I think the GUI will still need to be fixed either way. A warning is tolerable, but horrible UX, if the user can’t do anything about it other than manually finding and editing the settings json file.
tdb3 approved
tdb3
commented at 10:34 pm on October 31, 2024:
contributor
ACKa1b3ccae4be82297fd20f5be15a03eeb477507d0
Sanity check below.
On master (f07a533dfcb172321972e5afb3b38a4bd24edb87), prevents start:
makes sense to give a warning instead of giving an error which is bad ux for a user who has been using -upnp
laanwj
commented at 1:50 pm on November 1, 2024:
member
Concept ACK. A big improvement.
One thing i wonder though: do we have to explicitly remove the setting from settings.json after this warning, to prevent it happening every startup? Warning the user once is enough.
laanwj added the label
P2P
on Nov 1, 2024
achow101
commented at 9:09 pm on November 1, 2024:
member
ACKa1b3ccae4be82297fd20f5be15a03eeb477507d0
DrahtBot requested review from laanwj
on Nov 1, 2024
achow101 merged this
on Nov 1, 2024
achow101 closed this
on Nov 1, 2024
darosior deleted the branch
on Nov 1, 2024
darosior
commented at 11:01 pm on November 1, 2024:
member
One thing i wonder though: do we have to explicitly remove the setting from settings.json after this warning, to prevent it happening every startup? Warning the user once is enough.
I agree we should still fix the GUI. However i’m not sure how best to achieve that. Also if we do it it would be nice to make it extensible so next time we remove a startup option we don’t have to go through this again.
Another way could be to never persist hidden args in the settings, and we always keep startup options we remove as hidden args for a couple versions?
laanwj
commented at 7:52 am on November 2, 2024:
member
Another way could be to never persist hidden args in the settings, and we always keep startup options we remove as hidden args for a couple versions?
Agree that a consistent way would be better.
i’m not sure about re-using hidden. Could we maybe have a “REMOVED” flag on arguments specifically for this “don’t complain on load, but don’t persist” behavior? Could keep this around for a long time after removal, potentially, even after removing the warning code, to make sure users never run into this issue when upgrading.
(this would only affect settings.json–providing it on the command line, or explicltly in bitcoin.conf would then cause a normal “unknown arg” warning)
Sjors
commented at 3:01 pm on November 8, 2024:
member
cc @ryanofsky who recently refactored a lot of the settings code.
laanwj
commented at 1:22 pm on November 9, 2024:
member
Maybe unknown settings in settings.json should never be a fatal startup error. But it also shouldn’t be silently ignored (in case the setting changed important behavior). It could warn once at startup that they are there then remove them. This is probably the most user friendly way, as we don’t really ever want to force GUI users to manually edit a json file?
TheCharlatan referenced this in commit
a73b2bd0f0
on Nov 14, 2024
luke-jr referenced this in commit
df32bb88dd
on Jun 6, 2025
luke-jr referenced this in commit
b16c862873
on Jul 24, 2025
luke-jr referenced this in commit
d9d8360bf1
on Jul 29, 2025
luke-jr referenced this in commit
3cf1a7a539
on Aug 5, 2025
bug-castercv502 referenced this in commit
fdcc066ca0
on Sep 28, 2025
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2025-11-28 03:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me