Commit aac5488
committed
validation: correctly update BlockStatus for invalid block descendants
invalid_block ----------> block_index
- before this commit, only if block_index is not invalid, it will mark
block_index as BLOCK_FAILED_CHILD
- it's possible that block_index encountered is invalid and was marked
as BLOCK_FAILED_VALID previously
- in this case, correctly update BlockStatus of block_index by
clearing BLOCK_FAILED_VALID and then setting it to BLOCK_FAILED_CHILD1 parent 9e29653 commit aac5488
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3826 | 3826 | | |
3827 | 3827 | | |
3828 | 3828 | | |
3829 | | - | |
3830 | | - | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
3831 | 3832 | | |
3832 | 3833 | | |
3833 | 3834 | | |
| |||
0 commit comments