-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix devnet with constraints deadline #135
Fix devnet with constraints deadline #135
Conversation
thedevbirb
commented
Jul 16, 2024
•
edited by merklefruit
Loading
edited by merklefruit
- fixed a bug in the builder constraint cache timing: since we are now sending commitments towards the end of the slot, we cannot rely on fetching them when we start building for a specific slot. Instead, we keep the constraints cache downstream and constantly fetch from it to get the latest values each time a new worker is run.
- fixed an issue where the sidecar would throw a "payload header equivocation" error due to the local_payload cache not being cleared when getting a signed header back from the CL.
…payload attributes, which is called immediately in the slot before the commitment deadline Co-authored-by: nicolas <[email protected]>
… sign a local header Co-authored-by: nicolas <[email protected]>
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
// Clear the local payload cache if we have a successful response | ||
// By definition of `server.local_payload`, this will be `Some` IFF we have signed a local header | ||
let mut local_payload = server.local_payload.lock(); | ||
*local_payload = None; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since local_payload doesn't have a slot number, it was possible to get a stale block from this and result in a conflicting block hash in get_payload.