[Qt] remove broken OptionsModel::Upgrade() #3638

pull cozz wants to merge 2 commits into bitcoin:master from cozz:cozz1 changing 6 files +0 −110
  1. cozz commented at 7:56 AM on February 7, 2014: contributor

    When starting bitcoin-qt without a qt-settings file, strOverriddenByCommandLine contains some false values, because OptionsModel::Upgrade() calls OptionsModel::Init() a second time and SoftSetArgs have been set before with default values.

    Also to me it looks like OptionsModel::Init() assumes that AppInit2 is called after, but OptionsModel::Upgrade() is called after AppInit2. This would mean that some options set in OptionsModel::Upgrade() are not even applied. For example setting the proxy options through Upgrade() is broken, I assume (havent tested).

    So my suggestion is to remove OptionsModel::Upgrade() completely.

  2. laanwj commented at 8:18 AM on February 7, 2014: member

    Good idea, removing this has been on my mind for a while but I didn't get around to it. This only leads to surprises for people restoring old wallets with still settings in them.

    You could also remove the *Setting methods on wallet/walletdb after this.

  3. [Qt] remove broken OptionsModel::Upgrade() 44eb59e4a6
  4. remove setting methods in wallet/walletdb cdb6c16935
  5. cozz commented at 12:12 PM on February 7, 2014: contributor

    Added a second commit, removing the *Setting methods.

  6. laanwj commented at 12:13 PM on February 7, 2014: member

    Only code removal. These are the best kinds of pull. ACK

  7. BitcoinPullTester commented at 12:36 PM on February 7, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/cdb6c169355488d4e64a2435d916cb67a9c01ebe for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  8. Diapolo commented at 12:56 PM on February 7, 2014: none

    I welcome the removal of that damn OptionsModel::Upgrade() function. I stumbled upon false values for overridden by command-line also, but didn't have time to debug it further... thanks for catching this.

  9. laanwj referenced this in commit b19bcb752b on Feb 9, 2014
  10. laanwj merged this on Feb 9, 2014
  11. laanwj closed this on Feb 9, 2014

  12. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

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: 2026-04-21 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me