aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/blockchain_import.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-01 12:00:25 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-01 22:48:33 +0100
commit4e0e4e9942074609aa5c5cb44b8509a11b24bc4c (patch)
tree8cf996f4e81df9345d4868e6c207972e8d8a574d /src/blockchain_utilities/blockchain_import.cpp
parentblockchain_import: properly cleanup core/db on exit (diff)
downloadmonero-4e0e4e9942074609aa5c5cb44b8509a11b24bc4c.tar.xz
blockchain_import: warn for chunks over 500000, not 100000
We have a lot of 350000 byte blocks now.
Diffstat (limited to 'src/blockchain_utilities/blockchain_import.cpp')
-rw-r--r--src/blockchain_utilities/blockchain_import.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp
index 9afad95dc..4a180430f 100644
--- a/src/blockchain_utilities/blockchain_import.cpp
+++ b/src/blockchain_utilities/blockchain_import.cpp
@@ -316,9 +316,9 @@ int import_from_file(cryptonote::core& core, const std::string& import_file_path
MWARNING("WARNING: chunk_size " << chunk_size << " > BUFFER_SIZE " << BUFFER_SIZE);
throw std::runtime_error("Aborting: chunk size exceeds buffer size");
}
- if (chunk_size > 100000)
+ if (chunk_size > CHUNK_SIZE_WARNING_THRESHOLD)
{
- MINFO("NOTE: chunk_size " << chunk_size << " > 100000");
+ MINFO("NOTE: chunk_size " << chunk_size << " > " << CHUNK_SIZE_WARNING_THRESHOLD);
}
else if (chunk_size == 0) {
MFATAL("ERROR: chunk_size == 0");