diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-09-02 11:32:46 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-09-02 11:32:46 +0200 |
| commit | 02e5dcd2fab07c46b4943028cfabecbba4745b58 (patch) | |
| tree | fc1b6e736d2836a6cd62bcf986a074ce67ff8c0f /src/blockchain_utilities/bootstrap_file.cpp | |
| parent | c919ca4f1d4f629929c2aaa06551c37c28e19946 (diff) | |
| parent | 4e0e4e9942074609aa5c5cb44b8509a11b24bc4c (diff) | |
| download | monzero-core-02e5dcd2fab07c46b4943028cfabecbba4745b58.tar.gz monzero-core-02e5dcd2fab07c46b4943028cfabecbba4745b58.tar.xz monzero-core-02e5dcd2fab07c46b4943028cfabecbba4745b58.zip | |
Merge pull request #2384
4e0e4e99 blockchain_import: warn for chunks over 500000, not 100000 (moneromooo-monero)
5b29e87f blockchain_import: properly cleanup core/db on exit (moneromooo-monero)
e167c4d9 blockchain_import: do not error out on truncated files (moneromooo-monero)
Diffstat (limited to 'src/blockchain_utilities/bootstrap_file.cpp')
| -rw-r--r-- | src/blockchain_utilities/bootstrap_file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_utilities/bootstrap_file.cpp b/src/blockchain_utilities/bootstrap_file.cpp index d5bb37d93..2b1a5d6c7 100644 --- a/src/blockchain_utilities/bootstrap_file.cpp +++ b/src/blockchain_utilities/bootstrap_file.cpp @@ -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) { |
