<!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->
<!-- Describe the issue -->
assumevalid=0 does not seem to work when it is in the bitcoin.conf file but does when set as a cli argument.
<!--- What behavior did you expect? -->
I thought setting this in the config file would be enough to set this value.
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
When set in the config file, the log says it is still using the default hex value. It does work when set as a command line argument.

<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
Just setting the config option without the command line argument recreates the issue. I did test my config file by removing the dbcache setting and that was reflected in the logs.

<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
I am using the downloaded release version 18.0.
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
I am using a laptop with Ubuntu and a platter hard drive.
<!-- For the GUI-related issue on Linux provide names and versions of a distro, a desktop environment and a graphical shell (if relevant). -->
<!-- Any extra information that might be useful in the debugging process. -->
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

I'm sorry I'm using screenshots, I don't know how to do the horizontal quote boxes.
Is it with the grave marks? (`)