1
0
Fork 0
forked from lthn/blockchain

fixed a bug in hdd free space checking

This commit is contained in:
sowle 2019-08-01 16:50:52 +03:00
parent 6148bf27ae
commit e1e99544d1
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -713,6 +713,9 @@ namespace currency
#define MINIMUM_REQUIRED_FREE_SPACE_BYTES (1024 * 1024 * 100)
void core::check_free_space()
{
if (!m_critical_error_handler)
return;
boost::filesystem::space_info si = boost::filesystem::space(m_config_folder);
if (si.available < MINIMUM_REQUIRED_FREE_SPACE_BYTES)