Settings: move from wallet.dat to bitcoin.conf #60

issue tcatm opened this issue on February 7, 2011
  1. tcatm commented at 4:07 PM on February 7, 2011: none

    Settings should be stored only in bitcoin.conf so the wallet.dat is only a wallet.

    We would need...

    1. config file writer so GUI can change settings
    2. code that moves settings from wallet.dat to bitcoin.conf
    3. RPCs that allow to set/change settings. This will replace setgenerate

    Any thoughts on this?

  2. gavinandresen commented at 4:28 PM on February 7, 2011: contributor

    Rewriting user-created config files is always error-prone and tricky (you don't want to overwrite a user's carefully crafted bitcoin.conf).

    And it seems like the desire to do this is really some other feature in disguise (like backing up and encrypting private keys).

    I do like the idea of RPC to change bitcoin settings. Although some of the settings are only currently set-able on startup.

  3. jgarzik commented at 4:39 PM on February 7, 2011: contributor

    Be careful of the downgrade + upgrade scenario.

  4. tril0byte commented at 5:09 PM on March 5, 2011: none

    Consider using an existing configuration repository like gconf.

  5. jhyslop commented at 6:41 AM on March 6, 2011: none

    I think this proposal has merit.

    I was quite surprised to find, from reading the source code, that the wallet contains both money and configuration data. Keeping the two sets of data separate makes much more sense than lumping them together into a single file.

    If it's implemented correctly, there should be no issues with overwriting any of the users' changes.

  6. laanwj commented at 6:31 PM on December 3, 2011: member

    I like this idea. I don't necessarily say that the options should be re-written to bitcoin.conf, some other config file is OK too, but they should not be in the wallet.

    This will become especially apparent if we implement multiple wallet support.

  7. gavinandresen commented at 7:18 PM on April 4, 2012: contributor

    Settings were moved out of the wallet into the Qt settings file.

  8. gavinandresen closed this on Apr 4, 2012

  9. FuzzyBearBTC referenced this in commit 4574c58aa9 on Mar 30, 2014
  10. kac- referenced this in commit 9d7673aa2c on Jun 10, 2014
  11. rdponticelli referenced this in commit b00982fdbd on Nov 26, 2014
  12. dexX7 referenced this in commit 52d7437cb4 on Apr 9, 2015
  13. dexX7 referenced this in commit 8370416b4c on May 27, 2015
  14. jtimon referenced this in commit 6155ea4837 on Nov 25, 2015
  15. ptschip referenced this in commit e8634dc680 on Aug 4, 2016
  16. cryptapus referenced this in commit fd989d6b66 on Oct 19, 2017
  17. classesjack referenced this in commit d77922e8b7 on Jan 2, 2018
  18. CryptAxe referenced this in commit 9f94ee7108 on Feb 15, 2018
  19. effectsToCause referenced this in commit b3e13300ba on Jun 22, 2018
  20. effectsToCause referenced this in commit 75c6a32356 on Jun 22, 2018
  21. attilaaf referenced this in commit b7a3f0b2dc on May 25, 2019
  22. Losangelosgenetics referenced this in commit 6190c76631 on Mar 12, 2020
  23. KolbyML referenced this in commit d4d0613f7b on Sep 4, 2020
  24. cryptapus referenced this in commit a7c8dcf979 on May 3, 2021
  25. rajarshimaitra referenced this in commit c0d3b46e9f on Aug 5, 2021
  26. MarcoFalke 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-13 21:16 UTC

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