mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Use AutoFile where possible
This commit is contained in:
parent
6666803c89
commit
facc2fa7b8
17 changed files with 46 additions and 49 deletions
|
|
@ -195,7 +195,7 @@ std::vector<bool> DecodeAsmap(fs::path path)
|
|||
{
|
||||
std::vector<bool> bits;
|
||||
FILE *filestr = fsbridge::fopen(path, "rb");
|
||||
CAutoFile file(filestr, SER_DISK, CLIENT_VERSION);
|
||||
AutoFile file{filestr};
|
||||
if (file.IsNull()) {
|
||||
LogPrintf("Failed to open asmap file from disk\n");
|
||||
return bits;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue