Skip to content

Conversation

@furszy
Copy link

@furszy furszy commented Apr 24, 2021

Found this bug fix investigating master's GA test failure reason. Not related to it but still a bug-fix.

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 has no direct impact, only affects the warning logging system.
Coming from bitcoin#13185.

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.
@furszy furszy self-assigned this Apr 24, 2021
@random-zebra random-zebra added this to the 6.0.0 milestone Apr 24, 2021
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK b7910a8

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK b7910a8

@random-zebra random-zebra merged commit 68517c6 into PIVX-Project:master May 11, 2021
@furszy furszy deleted the 2021_bugfix_validation branch November 29, 2022 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants