Skip to content

Conversation

gavinandresen
Copy link
Contributor

The main motivation for this was a lot of frustration because command-line, bitcoin.conf, and wallet.dat settings were interacting in ill-defined ways.

Now GUI settings are stored in QT settings files; see
http://developer.qt.nokia.com/doc/qt-4.8/qsettings.html#platform-specific-notes

... for details on where. Testnet and main network have their own separate files (thanks @laanwj).

The first time you run with this patch settings from your wallet.dat will be read and moved over to the new settings file (and the settings erased from wallet.dat). From then on, settings in the wallet.dat are ignored-- so if you're using --datadir and multiple wallets, don't expect the setting to be read/erased from the other wallets.

The 'proxy' setting is behaving badly (e.g. 127.0.0.1 is turned into an IP6-looking address), but I'm 90% sure that is a pre-existing bug based on other reports of weird strings in the proxy setting with the 0.6 release. I'll file an issue about that.

@sipa
Copy link
Member

sipa commented Feb 25, 2012

Do we want this in 0.6.0 still?

@laanwj
Copy link
Member

laanwj commented Feb 25, 2012

Hmm, as this has pretty significant changes, I think we should leave this for 0.7.0, and try it out a bit ourselves first.

@gavinandresen
Copy link
Contributor Author

If (a rebased version of) this isn't pulled for 0.6 then another fix for #815 (UpNP settings don't stick) is needed-- trying to fix that bug is what led me to pull my hair out and decide the whole settings system needed to be overhauled.

@laanwj
Copy link
Member

laanwj commented Feb 25, 2012

ok, in that case it's fine with me to add it for 0.6.0 already

case MinimizeOnClose:
return QVariant(fMinimizeOnClose);
case ConnectSOCKS4:
return QVariant(fUseProxy);
return settings.value("fUseProxy", false);
case ProxyIP:
return QVariant(QString::fromStdString(addrProxy.ToStringIP()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ToStringIPPort(), I think.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't that append the port? It only wants the IP here, port is separate.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, yes it would. Still, the proxy port doesn't seem to get saved to the file?

@sipa
Copy link
Member

sipa commented Feb 27, 2012

Included in #904

@sipa sipa closed this Feb 27, 2012
destenson pushed a commit to destenson/bitcoin--bitcoin that referenced this pull request Jun 26, 2016
ptschip pushed a commit to ptschip/bitcoin that referenced this pull request Jan 9, 2018
Fix OSX use of CLOCK_MONOTONIC and move win gitian build to main repo
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Oct 30, 2019
b5a5257 [Refactor] Remove unused setStakeSeen variable (warrows)

Tree-SHA512: c5244b3cf269d3b6171a5b241265b98bffcfbf580cecbf9cc2741ea2b3374deb558459a8764f1931080331b11456a8d129dbcc3b6e59955f15bc184333e23ca8
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants