mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
In WriteSettings(), verify that writing to the stream and closing it succeeded before returning true. This prevents RenameOver() from replacing a valid settings.json with a corrupted or zero-byte file when write limits or a full disk are encountered. Additionally, update the ReadSettings() parse failure message to mention power loss, full disk, or storage error as possible causes. Fixes #35373
5.0 KiB
Executable File
5.0 KiB
Executable File