Skip to content

Conversation

@Melvillian
Copy link

📝 Summary

Update the function op-rbuilder uses to calculate the flashtestation's BlockBuilderPolicy's workload ID to use the latest function from flashbots/flashtestations#53

💡 Motivation and Context

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.


✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

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.

1 participant