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

Calculate megabundle as soon as it's received #112

Merged
merged 7 commits into from
Feb 8, 2022

Conversation

Ruteri
Copy link
Collaborator

@Ruteri Ruteri commented Jan 20, 2022

Since megabundles are only sent if they improve the profit over previous megabundle, they should be considered for mining immediately.

@Ruteri Ruteri requested a review from jparyani January 20, 2022 10:07
@Ruteri Ruteri self-assigned this Jan 20, 2022
@Ruteri Ruteri force-pushed the calculate-megabundle-instantly branch from f4e9cec to 25e9d32 Compare January 31, 2022 17:52
@tkstanczak tkstanczak self-requested a review February 6, 2022 23:15
Copy link
Collaborator

@tkstanczak tkstanczak left a comment

Choose a reason for hiding this comment

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

Is there no risk that this change removes the liveness requirements of the block builder? If better megabundles keep coming than a new block will never get built?

@Ruteri
Copy link
Collaborator Author

Ruteri commented Feb 7, 2022

Is there no risk that this change removes the liveness requirements of the block builder? If better megabundles keep coming than a new block will never get built?

If you notice here https://github.com/flashbots/mev-geth/pull/112/files#diff-689874b30f6f905ce6c47cdefeddcf052b467a7936a981f4b6cf38939e10d924R457 that the megabundle interrupt is submitted with "interrupt none", it will not stop the previous task (whatever it may be). So if we are getting more requests than we can handle, we still produce blocks as fast as we can, and the (non-) interrupts are queued. If a different interrupt is submitted (head/recommit) the higher interrupt is propagated to the task.

@Ruteri Ruteri merged commit f66aad3 into master Feb 8, 2022
@Ruteri Ruteri deleted the calculate-megabundle-instantly branch February 8, 2022 18:13
Ruteri pushed a commit that referenced this pull request Feb 18, 2022
* fix issue with geth not shutting down (#97)
* Add eth_callBundle rpc method (#14)
* flashbots: add eth_estimateGasBundle (#102)
* feat(ethash): flashbots_getWork RPC with profit (#106)
* Calculate megabundle as soon as it's received (#112)
* Add v0.5 specification link (#118)
Ruteri added a commit that referenced this pull request Feb 21, 2022
* fix issue with geth not shutting down (#97)
* Add eth_callBundle rpc method (#14)
* flashbots: add eth_estimateGasBundle (#102)
* feat(ethash): flashbots_getWork RPC with profit (#106)
* Calculate megabundle as soon as it's received (#112)
* Add v0.5 specification link (#118)
Ruteri added a commit that referenced this pull request Apr 4, 2022
* fix issue with geth not shutting down (#97)
* Add eth_callBundle rpc method (#14)
* flashbots: add eth_estimateGasBundle (#102)
* feat(ethash): flashbots_getWork RPC with profit (#106)
* Calculate megabundle as soon as it's received (#112)
* Add v0.5 specification link (#118)
Ruteri added a commit that referenced this pull request Jun 7, 2022
* fix issue with geth not shutting down (#97)
* Add eth_callBundle rpc method (#14)
* flashbots: add eth_estimateGasBundle (#102)
* feat(ethash): flashbots_getWork RPC with profit (#106)
* Calculate megabundle as soon as it's received (#112)
* Add v0.5 specification link (#118)
Ruteri added a commit that referenced this pull request Jun 15, 2022
* fix issue with geth not shutting down (#97)
* Add eth_callBundle rpc method (#14)
* flashbots: add eth_estimateGasBundle (#102)
* feat(ethash): flashbots_getWork RPC with profit (#106)
* Calculate megabundle as soon as it's received (#112)
* Add v0.5 specification link (#118)
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