My main bitcoin.conf is located in the AppData. Setting the datadir in it or via argument allows me to let the daemon/qt load another bitcoin.conf that is located in the DataDir. I can also change the main bitcoin.conf by setting the conf via argument and I can also specify includeconf in the config to load another config file.
I'd like to know how the priority will be when using all of the above features on conflicting keys as well as if merging is done and if so, how.
For instance: Which of the values will be used if I define its key in the main config as well as in the config at the datadir and even in a config that was included using includeconf? Is it also possible to use includeconf twice or more times to load more than one additional configuration?
What if I use includeconf in the config of the datadir and in the main conf and both files also contain conflicting keys? Will there be any merging at all?
datadirkey as well as in the config file of thedatadirdirectory, the key in the main config file will still be the first, right? So the order of priority is main config, datadir config (if-confwasn't used), includeconf config, ..., right? Also can I useincludeconfin the config file atdatadiras well? – Martin Braun Dec 19 '21 at 13:50