Bitcoin Forum

Bitcoin => Electrum => Topic started by: davidbak on November 21, 2021, 08:00:47 PM



Title: Documentation on contents of configuration file `config`?
Post by: davidbak on November 21, 2021, 08:00:47 PM
Where is the contents of the configuration file specified?  Fields + possible values.  Thanks!


Title: Re: Documentation on contents of configuration file `config`?
Post by: pooya87 on November 22, 2021, 04:13:31 AM
I believe this is what you are looking for:
https://github.com/spesmilo/electrum/blob/master/electrum/simple_config.py


Title: Re: Documentation on contents of configuration file `config`?
Post by: davidbak on November 22, 2021, 04:54:51 AM
Thank you, I had found that - but not only is that not documentation but even groveling in this code is insufficient:  I have config entries, apparently honored, that are not in this source file, including: confirmed_only, fiat_address, show_{addresses,console,utxo}_tab, and many more.


Title: Re: Documentation on contents of configuration file `config`?
Post by: pooya87 on November 22, 2021, 07:45:26 AM
Thank you, I had found that - but not only is that not documentation but even groveling in this code is insufficient:  I have config entries, apparently honored, that are not in this source file, including: confirmed_only, fiat_address, show_{addresses,console,utxo}_tab, and many more.
The link above is where the config file is created and read. There are other places where some additional keys are being set in the "config object" which can then be written to disk or read from it later. For example there are a bunch of them including your examples here in exchange_rate.py (https://github.com/spesmilo/electrum/blob/6650e6bbae12a79e12667857ee039f1b1f30c7e3/electrum/exchange_rate.py) file.