mirror of
https://github.com/monero-project/monero.git
synced 2025-08-12 12:10:25 -04:00
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
This commit is contained in:
parent
7abdba0a5c
commit
d2d8a41c47
8 changed files with 135 additions and 67 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue