This is a quick fix bitcoin-core/gui#567 which is assumed to be backported to 23.0rc3.
Effectively, this PR reverts bitcoin/bitcoin#20769 which could be implemented later in a better way.
This is a quick fix bitcoin-core/gui#567 which is assumed to be backported to 23.0rc3.
Effectively, this PR reverts bitcoin/bitcoin#20769 which could be implemented later in a better way.
This reverts commit a38137479bf5e25bf65a62e46b81fc43fb3df75c.
I'm very ~0 on last-minute reverting bug fixes to bitcoind, to fix problems in the GUI.
I am a bit ~-0.1 on this. However, the problem is quite serious - bitcoin-qt just will refuse to start. Lets see if there would be better solution...
I don't think there is anything wrong with reverting a hunk that was never released in a release
I'm very ~0 on last-minute reverting bug fixes to
bitcoind, to fix problems in the GUI.
In comparison the "bug" that had been fixed in #20769 with the bitcoin-core/gui#567, the latter looks much more seriously.
And, considering #20657 (comment):
Should we automatically set
listenonionto0iflistenis set to0?
we already do in https://github.com/bitcoin/bitcoin/blob/d6f225f5c9f8382878e6970b707e57838e312f8c/src/init.cpp#L688-L689
What about this:
--- i/src/qt/optionsmodel.cpp
+++ w/src/qt/optionsmodel.cpp
@@ -148,14 +148,17 @@ void OptionsModel::Init(bool resetSettings)
if (!gArgs.SoftSetBoolArg("-natpmp", settings.value("fUseNatpmp").toBool())) {
addOverriddenOption("-natpmp");
}
if (!settings.contains("fListen"))
settings.setValue("fListen", DEFAULT_LISTEN);
- if (!gArgs.SoftSetBoolArg("-listen", settings.value("fListen").toBool()))
+ if (!gArgs.SoftSetBoolArg("-listen", settings.value("fListen").toBool())) {
addOverriddenOption("-listen");
+ } else if (!settings.value("fListen").toBool()) {
+ gArgs.SoftSetBoolArg("-listenonion", false);
+ }
if (!settings.contains("server")) {
settings.setValue("server", false);
}
if (!gArgs.SoftSetBoolArg("-server", settings.value("server").toBool())) {
addOverriddenOption("-server");
It fixes https://github.com/bitcoin-core/gui/issues/567 without reintroducing #20657.
I'm very ~0 on last-minute reverting bug fixes to
bitcoind, to fix problems in the GUI.
I am a bit ~
-0.1on this. However, the problem is quite serious -bitcoin-qtjust will refuse to start. Lets see if there would be better solution...
Okay, closing in favor of bitcoin-core/gui#568.
Milestone
23.0