Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect safeBlockHash in fcU with payload attributes #12195

Closed
michaelsproul opened this issue Mar 28, 2023 · 1 comment · Fixed by #12196
Closed

Incorrect safeBlockHash in fcU with payload attributes #12195

michaelsproul opened this issue Mar 28, 2023 · 1 comment · Fixed by #12196

Comments

@michaelsproul
Copy link

🐞 Bug Report

Description

While testing Prysm with my execution multiplexer (eleel) I noticed that some of Prysm's forkchoiceUpdated messages were not matching Lighthouse.

I tracked it down to Prysm sometimes setting the safeBlockHash to the finalizedBlockHash rather than the justifiedBlockHash. I noticed that this seems to happen only for fork choice updates that include payload attributes, which at a glance makes sense given the code here:

f := &enginev1.ForkchoiceState{
HeadBlockHash: parentHash,
SafeBlockHash: finalizedBlockHash,
FinalizedBlockHash: finalizedBlockHash,
}

This isn't a critical bug, and I think the impact is minimal. For now I'll work around it in eleel.

Has this worked before in a previous version?

Not sure. I noticed it on v3.2.2 and upgrading to v4.0.0 didn't fix it.

🌍 Your Environment

Operating System:

  
Ubuntu 22.04 x86_64
  

What version of Prysm are you running? (Which release)

  
v4.0.0
  
@potuz
Copy link
Contributor

potuz commented Mar 28, 2023

Oh nice catch thanks for the report @michaelsproul will move to unrealized justified checkpoint all of those

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 a pull request may close this issue.

2 participants