Bitcoin Forum
May 24, 2024, 11:42:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Documentation on contents of configuration file `config`?  (Read 63 times)
davidbak (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 7


View Profile
November 21, 2021, 08:00:47 PM
 #1

Where is the contents of the configuration file specified?  Fields + possible values.  Thanks!
pooya87
Legendary
*
Offline Offline

Activity: 3458
Merit: 10588



View Profile
November 22, 2021, 04:13:31 AM
 #2

I believe this is what you are looking for:
https://github.com/spesmilo/electrum/blob/master/electrum/simple_config.py

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
davidbak (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 7


View Profile
November 22, 2021, 04:54:51 AM
 #3

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.
pooya87
Legendary
*
Offline Offline

Activity: 3458
Merit: 10588



View Profile
November 22, 2021, 07:45:26 AM
 #4

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 file.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!