Skip to content

fix: conditional check in engine_NewPayloadV3#289

Merged
fmoletta merged 2 commits into
mainfrom
fix-block_number-check
Aug 19, 2024
Merged

fix: conditional check in engine_NewPayloadV3#289
fmoletta merged 2 commits into
mainfrom
fix-block_number-check

Conversation

@fmoletta

@fmoletta fmoletta commented Aug 19, 2024

Copy link
Copy Markdown
Contributor

Motivation

The conditional should check the case were the block number is already part of the chain (therefore causing a potential reorg if the block is not the one we have on the state), but instead of checking that the incoming block number is lower or equal to the last block number, it checks that the last block number is lower or equal to the incoming one which doesn't make any sense

Description

  • Fix conditional check in when checking that the incoming block extends the canonical chain in engine_NewPaylaodV3

Closes None, but fixes #253

@fmoletta fmoletta marked this pull request as ready for review August 19, 2024 16:26
@fmoletta fmoletta requested a review from a team as a code owner August 19, 2024 16:26
@fmoletta fmoletta added this pull request to the merge queue Aug 19, 2024
Merged via the queue into main with commit 238ab9d Aug 19, 2024
@fmoletta fmoletta deleted the fix-block_number-check branch August 19, 2024 18:56
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