util: Check write failures before renaming settings.json
This commit fixes a bug in how Bitcoin Core saves its settings file. Previously, if the disk was full or a write failed, the program could replace the user's valid settings file with an empty or corrupted one. Now it checks that the new fi…
0654511eby Shrey+11−33 files