mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge 4f802e59a0 into merged_master (Bitcoin PR #17509)
This commit is contained in:
commit
1ea940a2e2
13 changed files with 223 additions and 53 deletions
|
|
@ -147,6 +147,12 @@ bool CheckDiskSpace(const fs::path& dir, uint64_t additional_bytes)
|
|||
return free_bytes_available >= min_disk_space + additional_bytes;
|
||||
}
|
||||
|
||||
std::streampos GetFileSize(const char* path, std::streamsize max) {
|
||||
std::ifstream file(path, std::ios::binary);
|
||||
file.ignore(max);
|
||||
return file.gcount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Interpret a string argument as a boolean.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue