Commit 5852c0c
Fix incorrect block progress calculation in header download log
tip_height is 0-indexed, so the total header count is tip_height + 1.
Using tip_height as the denominator caused >100% progress (e.g. 200%
with 2 blocks) and division by zero when tip_height is 0.
Fixes #1971 parent dfcb4fe commit 5852c0c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
787 | | - | |
788 | | - | |
| 787 | + | |
| 788 | + | |
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
| |||
0 commit comments