aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/bootstrap_file.h
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2017-09-17 00:12:42 +0100
committerHoward Chu <hyc@symas.com>2017-09-17 22:08:40 +0100
commitd2d8a41c47b408df35d1379255fc009f50a0b770 (patch)
treebd2503bbcad8d08a7d7b67e9ba2e54da674743c9 /src/blockchain_utilities/bootstrap_file.h
parentMerge pull request #2438 (diff)
downloadmonero-d2d8a41c47b408df35d1379255fc009f50a0b770.tar.xz
Use actual batch size for resize estimates
And optimize import startup: Remember start_height position during initial count_blocks pass to avoid having to reread entire file again to arrive at start_height
Diffstat (limited to '')
-rw-r--r--src/blockchain_utilities/bootstrap_file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blockchain_utilities/bootstrap_file.h b/src/blockchain_utilities/bootstrap_file.h
index 1a646b54b..c3969a357 100644
--- a/src/blockchain_utilities/bootstrap_file.h
+++ b/src/blockchain_utilities/bootstrap_file.h
@@ -56,6 +56,8 @@ class BootstrapFile
{
public:
+ uint64_t count_bytes(std::ifstream& import_file, uint64_t blocks, uint64_t& h, bool& quit);
+ uint64_t count_blocks(const std::string& dir_path, streampos& start_pos, uint64_t& seek_height);
uint64_t count_blocks(const std::string& dir_path);
uint64_t seek_to_first_chunk(std::ifstream& import_file);