Skip to content

Skip verify header when trace block#476

Merged
tungng98 merged 4 commits intoBuildOnViction:pre-releasefrom
imterryyy:master
Nov 7, 2024
Merged

Skip verify header when trace block#476
tungng98 merged 4 commits intoBuildOnViction:pre-releasefrom
imterryyy:master

Conversation

@imterryyy
Copy link
Copy Markdown
Collaborator

@imterryyy imterryyy commented Nov 6, 2024

When running the trace API for block numbers below 3M (TIPSigning), the node returns an invalid penalty list on checkpoint blocks due to the use of the old HookPenalty.

The old HookPenalty uses the latest statedb to calculate the penalty list, which relies on the state of the BlockSigner contract. However, in the latest statedb, the code and data of the BlockSigner contract are removed by TIPSigningBlock:

work.state.DeleteAddress(common.HexToAddress(common.BlockSigners))

Removing the header verification for block < TIPSigning can fix this issue. We will cover trace bad block in future PR

@tungng98 tungng98 changed the base branch from master to pre-release November 7, 2024 05:18
@tungng98 tungng98 merged commit 396b851 into BuildOnViction:pre-release Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants