Skip to content
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

Upgrade go-boost-utils #523

Merged
merged 1 commit into from
Jun 28, 2023
Merged

Upgrade go-boost-utils #523

merged 1 commit into from
Jun 28, 2023

Conversation

avalonche
Copy link
Collaborator

@avalonche avalonche commented Jun 5, 2023

πŸ“ Summary

Upgrade all the types to attestant by upgrading go-boost-utils in flashbots/go-boost-utils#76. Tidying up types in the common/ folder will be in a follow up PR.

β›± Motivation and Context

We want to move away from go-boost-utils types entirely and move all types to attestant. This PR is part of the migration move entirely to attestant, switching the util functions to attestant types.

πŸ“š References


βœ… I have run these commands

  • make lint
  • make test-race
  • go mod tidy

@codecov-commenter
Copy link

codecov-commenter commented Jun 5, 2023

Codecov Report

Merging #523 (3b882d8) into develop (54eeaa2) will increase coverage by 0.18%.
The diff coverage is 64.25%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@             Coverage Diff             @@
##           develop     #523      +/-   ##
===========================================
+ Coverage    70.24%   70.42%   +0.18%     
===========================================
  Files            6        7       +1     
  Lines          541     1099     +558     
===========================================
+ Hits           380      774     +394     
- Misses         132      281     +149     
- Partials        29       44      +15     
Flag Coverage Ξ”
unittests 70.42% <64.25%> (+0.18%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Ξ”
cli/main.go 0.00% <0.00%> (ΓΈ)
cli/types.go 0.00% <0.00%> (ΓΈ)
server/utils.go 75.00% <74.15%> (+7.43%) ⬆️
server/service.go 80.83% <77.86%> (+8.81%) ⬆️
server/mock_relay.go 92.18% <94.62%> (+9.33%) ⬆️
server/mock_types.go 100.00% <100.00%> (ΓΈ)
server/relay_entry.go 90.00% <100.00%> (+8.75%) ⬆️

... and 1 file with indirect coverage changes

@avalonche avalonche closed this Jun 7, 2023
@avalonche avalonche reopened this Jun 7, 2023
@avalonche avalonche changed the base branch from develop to stable June 7, 2023 17:14
@avalonche avalonche changed the base branch from stable to develop June 7, 2023 17:14
@avalonche avalonche requested a review from metachris June 7, 2023 17:25
@metachris
Copy link
Collaborator

We'll remove the bellatrix codepaths first, which will make this update quite a bit simpler.

@avalonche avalonche changed the base branch from develop to remove-wrapper-types June 26, 2023 11:13
@@ -537,199 +539,22 @@ func TestGetHeaderBids(t *testing.T) {
require.Equal(t, 1, backend.relays[0].GetRequestCount(path))

// Value should be 12345 (min bid is 12345)
resp := new(types.GetHeaderResponse)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

duplicate code originally used to test capella. Now that bellatrix get header is removed, we can remove these tests

Base automatically changed from remove-wrapper-types to develop June 27, 2023 07:45
@avalonche avalonche force-pushed the go-boost-utils-upgrade branch 2 times, most recently from 14326b4 to b8248da Compare June 27, 2023 10:26
Copy link
Collaborator

@metachris metachris left a comment

Choose a reason for hiding this comment

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

lgtm, nice work!

@metachris metachris merged commit 3c26cd7 into develop Jun 28, 2023
4 checks passed
@metachris metachris deleted the go-boost-utils-upgrade branch June 28, 2023 07:08
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.

None yet

3 participants