blockchain_import: warn for chunks over 500000, not 100000

We have a lot of 350000 byte blocks now.
This commit is contained in:
moneromooo-monero
2017-09-01 12:00:25 +01:00
parent 5b29e87f85
commit 4e0e4e9942
3 changed files with 5 additions and 4 deletions

View File

@@ -436,10 +436,10 @@ uint64_t BootstrapFile::count_blocks(const std::string& import_file_path)
<< " height: " << h-1);
throw std::runtime_error("Aborting: chunk size exceeds buffer size");
}
if (chunk_size > 100000)
if (chunk_size > CHUNK_SIZE_WARNING_THRESHOLD)
{
std::cout << refresh_string;
MDEBUG("NOTE: chunk_size " << chunk_size << " > 100000" << " height: "
MDEBUG("NOTE: chunk_size " << chunk_size << " > " << CHUNK_SIZE_WARNING_THRESHOLD << " << height: "
<< h-1);
}
else if (chunk_size <= 0) {