Motivation
When a full disk causes settings.json to be zero-written, Bitcoin Core reports:
"This is probably caused by disk corruption or a crash"
A full disk is a common real-world cause of this exact failure — the file exists but contains zero bytes, producing invalid JSON. The current message does not mention this possibility, leading users to investigate hardware corruption and crashes when the actual cause is simply insufficient disk space.
Possible solution
Change the error message from:
"This is probably caused by disk corruption or a crash"
to:
"This is probably caused by a full disk, disk corruption or a crash"
One-line change in src/util/settings.cpp
Useful Skills
- Compiling Bitcoin Core from source
- Running the C++ unit tests and the Python functional tests
- ...
Guidance for new contributors
Want to work on this issue?
For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.