Open kristapsk opened 2 years ago
would sometimes save some time to just allow empty or non-existing
directory_nodes
setting for development purposes, when switching to regtest / testnet, otherwise in some scenarious I need to comment out whole section instead of single line.
Actually figured out I can just comment out [MESSAGING:onion]
line. :)
Actually figured out I can just comment out [MESSAGING:onion] line. :)
Right. Guess this is not really an issue, whole section should be deleted if you don't want it, right?
I want it for mainnet / signet, but not testnet. Anyway, not a big issue, but error messages could be improved.
OK. On different networks, I personally just keep different *cfg files for each (just because there are a few random vars, like this one, that I might want to change). On error message improvement, sure, I guess.
This could be related to another error report from a user on Telegram: they had a huge stack trace output, but actually the error was simply that they forgot to include the #
before a comment in the config file. So we could have a config file sanity check before doing anything to make sure we don't have difficult-to-interpret crashes.
Noticed this while testing #1332.
Currently if
[MESSAGING:onion]
section is present injoinmarket.cfg
, butdirectory_nodes
are commented out, when startingob-watcher.py
you get error:If instead you add empty
directory_nodes
setting, there is different error:Kinda no big deal, but it would sometimes save some time to just allow empty or non-existing
directory_nodes
setting for development purposes, when switching to regtest / testnet, otherwise in some scenarious I need to comment out whole section instead of single line.Then again, probably having this section without properly configured
directory_nodes
is not something user might want to have on mainnet. Not 100% sure here.In any case, error message could be improved,
KeyError
/AttributeError
is not user friendly.