Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hive
hive
Commits
0ac01e54
Commit
0ac01e54
authored
May 20, 2022
by
Marcin Sobczyk
Committed by
Bartek Wrona
May 20, 2022
Browse files
With compress_block_log use number of blocks exactly matching block-count value
parent
b4adf888
Changes
1
Hide whitespace changes
Inline
Side-by-side
programs/util/compress_block_log.cpp
View file @
0ac01e54
...
...
@@ -280,7 +280,7 @@ void fill_pending_queue(const fc::path& block_log)
exit
(
1
);
}
uint32_t
stop_at_block
=
blocks_to_compress
?
starting_block_number
+
*
blocks_to_compress
:
head_block_num
;
uint32_t
stop_at_block
=
blocks_to_compress
?
starting_block_number
+
*
blocks_to_compress
-
1
:
head_block_num
;
ilog
(
"Compressing blocks ${starting_block_number} to ${stop_at_block}"
,
(
starting_block_number
)(
stop_at_block
));
uint32_t
current_block_number
=
starting_block_number
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment