Skip to content

Conversation

@Melvillian
Copy link
Collaborator

… documentation for v1 block builder policy migration

This PR introduces the V1BlockBuilderPolicy contract and corresponding upgrade script to migrate from the initial policy version that contained buggy xFAM and td attributes bit masking logic. The upgrade provides a cleaner implementation without bit masking, following the bug fix completed in the previous commit. Documentation is added to the README explaining the upgrade rationale and deployment commands.

… documentation for v1 block builder policy migration

This PR introduces the V1BlockBuilderPolicy contract and corresponding upgrade script to migrate from the initial policy version that contained buggy xFAM and td attributes bit masking
logic. The upgrade provides a cleaner implementation without bit masking, following the bug fix completed in the previous commit. Documentation is added to the README explaining the upgrade
rationale and deployment commands.
@Melvillian Melvillian requested a review from Ruteri November 21, 2025 21:02
Melvillian added a commit to Melvillian/op-rbuilder that referenced this pull request Nov 21, 2025
To account for a bug in the xfam and tdAttributes bitmasking logic, we changed the way the
workload ID is calculated in the BlockBuilderPolicy. That PR is here:

flashbots/flashtestations#53

This means the workload ID calculation needs to change in any upstream services, which includes
op-rbuilder.

I've made the same change that I made in the solidity contract here in the attestation.rs logic
where op-rbuilder calculates the workload ID. The tests have been updated to use the new correct
workload ID, which I obtained by running the BlockBuilderPolicy:workloadIdForTDRegistration function
on the same TEE registration that is used in the tests.
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