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

Notify orderpool cleanup without IPC #327

Merged
merged 3 commits into from
Jan 3, 2025

Conversation

ferranbt
Copy link
Contributor

πŸ“ Summary

Closes #318. This PR uses the block building flow to notify the order pool to clean old transactions instead of using the IPC path of the EL node.

πŸ’‘ Motivation and Context


βœ… I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

Copy link

github-actions bot commented Dec 31, 2024

Benchmark results for d4b1efc

Report: https://flashbots-rbuilder-ci-stats.s3.us-east-2.amazonaws.com/benchmark/d4b1efc-39ac5f7/report/index.html

Date (UTC) 2025-01-03T15:03:54+00:00
Commit d4b1efcca69e9e6af837347123fda9267ec69ed3
Base SHA 39ac5f760f8f0fd187f224de60b15121188338cb

Significant changes

Benchmark Mean Status
gather_nodes_clone 10.02% Performance has degraded.
MEV-Boost SubmitBlock serialization/JSON encoding -37.79% Performance has improved.

@ferranbt ferranbt merged commit 437d63f into develop Jan 3, 2025
6 checks passed
@ferranbt ferranbt deleted the ferranbt/orderpool-notify-without-ipc branch January 3, 2025 16:04
let state = match provider_factory.latest() {
Ok(state) => state,
Err(err) => {
error!("Failed to get latest state: {}", err);
Copy link
Contributor

Choose a reason for hiding this comment

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

please, do logs like this

error!(?err, "Message")

This is how its done in the rest of the codebase and it makes the errors appear as a field in the json logs instead of the message.

ferranbt added a commit that referenced this pull request Jan 16, 2025
## πŸ“ Summary

Bug introduced in #327. Rbuilder would not stop with `Ctrl-C` because it
would be waiting for `spawn_clean_orderpool_job` to finish. But,
`spawn_clean_orderpool_job` would not handle the cancellation token.

## πŸ’‘ Motivation and Context

<!--- (Optional) Why is this change required? What problem does it
solve? Remove this section if not applicable. -->

---

## βœ… I have completed the following steps:

* [x] Run `make lint`
* [x] Run `make test`
* [x] Added tests (if applicable)

---------

Co-authored-by: Daniel Xifra <mandinga@gmail.com>
Co-authored-by: liamaharon <liam.aharon@hotmail.com>
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.

Make orderpool cleanup independent of IPC path
3 participants