Commit a2f678d
committed
Bugfix: the end of a reorged chain is invalid when connect fails
Introduced in 4e0eed8
When an invalid block is found during a reorg, we know the last of the blocks in
the was-to-be-connected chain is invalid, but not necessarily the first. As
vpIndexToConnect is ordered in decreasing height, the end of the reorg is the
front of the vector, and not the back.
This only affected the warning system.1 parent bf9b03d commit a2f678d
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2551 | 2551 | | |
2552 | 2552 | | |
2553 | 2553 | | |
2554 | | - | |
2555 | | - | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
2556 | 2557 | | |
2557 | 2558 | | |
2558 | 2559 | | |
| |||
0 commit comments