Skip to content

op-wheel: execution engine logic#4286

Merged
mslipper merged 1 commit intodevelopfrom
op-wheel-engine
Dec 8, 2022
Merged

op-wheel: execution engine logic#4286
mslipper merged 1 commit intodevelopfrom
op-wheel-engine

Conversation

@protolambda
Copy link
Contributor

@protolambda protolambda commented Dec 7, 2022

Description

This PR adds a engine package to op-wheel with all the backend logic for the engine commands: a common engine API dialing function with authentication, and functions to read or modify the engine API.

Third PR in a stack of 4: base, cheats-logic, engine-logic, commands-frontend:

Tests

This is a testing tool used in the migration testing. I'm open to testing the backend functionality in CI somewhere, but don't like to cascade the testing with testing of the testing.

Metadata

Fix #ENG-3084

@changeset-bot
Copy link

changeset-bot bot commented Dec 7, 2022

⚠️ No Changeset found

Latest commit: ea8c462

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@trianglesphere trianglesphere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. If we want to test this, I think we could unit test it, but probably shouldn't do integration tests for this.

if err != nil {
return head, nil, nil, fmt.Errorf("failed to get safe block: %w", err)
}
finalized, err = getHeader(ctx, client, "eth_getBlockByNumber", "finalized")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to fetch block by number instead of header by number if you only care about the header?

Base automatically changed from op-wheel-cheats to develop December 8, 2022 03:13
@mslipper mslipper merged commit d3bc41b into develop Dec 8, 2022
@mslipper mslipper deleted the op-wheel-engine branch December 8, 2022 03:14
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