The functional tests in the repository fail because the config.ini file is missing proper section headers, causing the test framework to throw a MissingSectionHeaderError.
This occurs when running tests like mempool_ephemeral_dust.py, producing the following error:
configparser.MissingSectionHeaderError: File contains no section headers. file: '.../test/config.ini', line: 1 '[environment]\n'
The root cause is either a missing [environment] header or an invisible BOM (Byte Order Mark) character at the beginning of the file.
Solution:
Ensure config.ini starts with a proper [environment] header.
Remove any invisible BOM characters.
Correct example of config.ini:
[environment] rpcuser=user rpcpassword=pass rpcport=18443
This change allows the functional tests to read the configuration properly and run without errors.