517 | @@ -518,8 +518,11 @@ def initialize_datadir(dirname, n, chain, disable_autoconnect=True):
518 |
519 |
520 | def write_config(config_path, *, n, chain, extra_config="", disable_autoconnect=True):
521 | - # Translate chain subdirectory name to config name
522 | - if chain == 'testnet3':
523 | + # Translate chain name to config name
In "test: refactor: make chain_dir consistent with CreateBaseChainParams" 0cea924d3326a787ed068d526f7396c6561ff6b9
nit: It is unclear at first why we need to set chain name and chain name conf section to None.
But its because after this change, chain is "main" so the chain_name_conf and chain_name_conf_section needs to be handled else they will have "main" which is not correct. Maybe mention that in the commit message?
Yeah, sorry, the generated commit message was confusing. I let Claude write it, and it phrased it like this:
and translate it to no chain argument and no config section in write_config
I rewrote it in my own words now in a4bc96966f. Hopefully it makes more (human) sense now!
Also updated PR description with the new commit message.