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

Publish block before returning to proposer #330

Merged
merged 7 commits into from
Apr 3, 2023
Merged

Conversation

metachris
Copy link
Collaborator

@metachris metachris commented Apr 3, 2023

📝 Summary

The relay should publish the block to the beacon network before returning to the proposer (nd if that fails not return the payload to the proposer at all).

⚠️ Important note: relays should run multiple beacon nodes! if publishing through the local beacon nodes fails, the payload won't get returned to the proposer and lead to a missed slot.


✅ 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-commenter commented Apr 3, 2023

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 38 lines in your changes missing coverage. Please review.

Project coverage is 17.77%. Comparing base (75d9525) to head (b6eb1e5).
Report is 231 commits behind head on main.

Files with missing lines Patch % Lines
beaconclient/multi_beacon_client.go 0.00% 29 Missing ⚠️
services/api/service.go 0.00% 9 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #330      +/-   ##
==========================================
- Coverage   17.86%   17.77%   -0.10%     
==========================================
  Files          20       20              
  Lines        3660     3679      +19     
==========================================
  Hits          654      654              
- Misses       2924     2944      +20     
+ Partials       82       81       -1     
Flag Coverage Δ
unittests 17.77% <0.00%> (-0.10%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@metachris metachris merged commit 75823ce into main Apr 3, 2023
@metachris metachris deleted the bpub-concurrent branch April 3, 2023 10:06
blombern pushed a commit to ultrasoundmoney/mev-boost-relay that referenced this pull request Apr 3, 2023
* publish block first

* Add concurrent release of the execution payload

* Fix capture

* Update logging

* Log the whole URI

* add 1s delay on returning getPaylaod

* fix naming

---------

Co-authored-by: Mateusz Morusiewicz <11313015+Ruteri@users.noreply.github.com>
@omprakashTk
Copy link

"pri y"

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.

5 participants