Unify the min_processed_to
calculation logic
#676
Labels
Milestone
8000
min_processed_to
calculation logic
#676
We use
build_all_shards_processed_to_by_partitions()
(code) andfind_min_processed_to_by_shards()
(code) helper methods to calculate cumulative stats ranges. We use a similar logic incalculate_min_internals_processed_to_for_shard()
(code) when we looking for min processed to for exact shard to calculate diff tail length.We can use
build_all_shards_processed_to_by_partitions()
andfind_min_processed_to_by_shards()
and then get min processed to for exact shard for diff tail length calculation.We can move method
calculate_min_internals_processed_to_for_shard
todo_collate_tests.rs
and check that updated algorithm produces the same result intest_calculate_min_processed_to_masterchain
andtest_calculate_min_processed_to_shard
tests.The text was updated successfully, but these errors were encountered: