Skip to content

Conversation

@Melvillian
Copy link
Collaborator

…moving bitmasking operations

Description

This commit removes the bitwise preprocessing operations (XOR, AND, NOT, OR) from the workload ID computation to align with the updated BlockBuilderPolicy contract implementation. Previously, the workload ID was computed by applying bitmasks to xFAM and tdAttributes values before hashing, but the upstream contract has simplified this logic to directly hash the raw register values.

You can find the original change here: flashbots/flashtestations#53

How Has This Been Tested?

manually, using the same tests as are in the flashtestations smart contract repo

Are there any breaking changes?

yes, but nobody uses this so it's ok

(Optional) Feedback Focus

just run yarn test in the flashtestations-sdk package and make sure they pass.

@Melvillian Melvillian requested a review from a team as a code owner November 25, 2025 15:49
@Melvillian Melvillian force-pushed the flashtestations-sdk/use-workload-calculation-without-bitmasking branch from ea0d40c to d4f5eca Compare November 25, 2025 15:55
@graphite-app graphite-app bot requested a review from a team November 25, 2025 16:01
@graphite-app graphite-app bot requested a review from a team November 25, 2025 16:01
@graphite-app
Copy link

graphite-app bot commented Nov 25, 2025

Graphite Automations

"Request reviewers once CI passes on sdks monorepo" took an action on this PR • (11/25/25)

3 reviewers were added and 1 assignee was added to this PR based on Siyu Jiang (See-You John)'s automation.

…moving bitmasking operations

This commit removes the bitwise preprocessing operations (XOR, AND, NOT, OR) from the workload ID computation to align with the updated BlockBuilderPolicy contract implementation. Previously, the workload
ID was computed by applying bitmasks to xFAM and tdAttributes values before hashing, but the upstream contract has simplified this logic to directly hash the raw register values.

You can find the original change here: flashbots/flashtestations#53
@Melvillian Melvillian force-pushed the flashtestations-sdk/use-workload-calculation-without-bitmasking branch from d4f5eca to 87b1296 Compare November 25, 2025 20:53
@Melvillian Melvillian merged commit a184e08 into main Nov 25, 2025
7 checks passed
@Melvillian Melvillian deleted the flashtestations-sdk/use-workload-calculation-without-bitmasking branch November 25, 2025 21:53
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.

4 participants