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

Codecov Report

Merging #330 (b6eb1e5) into main (75d9525) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            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.

Impacted Files Coverage Δ
beaconclient/multi_beacon_client.go 41.70% <0.00%> (-4.34%) ⬇️
services/api/service.go 13.09% <0.00%> (+0.02%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

services/api/service.go Outdated Show resolved Hide resolved
@metachris metachris merged commit 75823ce into main Apr 3, 2023
4 checks passed
@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.

None yet

5 participants