Fix bug in calculating the last checkpointed block that is used in the stats

This commit is contained in:
Duke Leto
2022-09-19 13:25:07 -04:00
parent 92b387baed
commit 53343051e8

View File

@@ -45,7 +45,7 @@ while (1) {
$count++;
my $block = $start_height + $stride*$count;
if ($block > $blocks) {
$last = $stride*($count-1);
$last = $start_height + $stride*($count-1);
#print "last checkpointed block=$last\n";
last;
}