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

[code health] refactor builder entry checks to independent function #498

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

michaelneuder
Copy link
Collaborator

πŸ“ Summary

Pull the slot details checks into an independent function.

Part of series: #479, #491, #494.


βœ… I have run these commands

  • make lint
  • make test-race
  • go mod tidy
  • I have seen and agree to CONTRIBUTING.md

@codecov-commenter
Copy link

Codecov Report

Merging #498 (3103184) into main (9c6216b) will increase coverage by 0.28%.
The diff coverage is 100.00%.

❗ 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             @@
##             main     #498      +/-   ##
==========================================
+ Coverage   31.40%   31.68%   +0.28%     
==========================================
  Files          24       24              
  Lines        4853     4860       +7     
==========================================
+ Hits         1524     1540      +16     
+ Misses       3136     3128       -8     
+ Partials      193      192       -1     
Flag Coverage Ξ”
unittests 31.68% <100.00%> (+0.28%) ⬆️

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

Files Changed Coverage Ξ”
services/api/service.go 37.87% <100.00%> (+0.78%) ⬆️

@@ -1563,6 +1563,38 @@ func (api *RelayAPI) checkSubmissionSlotDetails(w http.ResponseWriter, log *logr
return true
}

func (api *RelayAPI) checkBuilderEntry(w http.ResponseWriter, log *logrus.Entry, builderPubkey phase0.BLSPubKey) (*blockBuilderCacheEntry, bool) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

quick function comment would be nice, in particular what's the bool return value

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.

3 participants