flashbots / rbuilder

rbuilder is a blazingly fast, state of the art Ethereum MEV-Boost block builder written in Rust
Apache License 2.0
186 stars 21 forks source link

feat: Add a vec of trait datasources to historical data fetcher #13

Closed ferranbt closed 1 week ago

ferranbt commented 2 weeks ago

📝 Summary

This PR removes the hardcoded data sources in the HistoricalDataFetcher and replaces them with a dynamic Datasource trait.

💡 Motivation and Context

Before, the two main data sources (mempool dumpster, fb relay) were hardcoded in the HistoricalDataFetcher service. Now, the structure is more flexible and new data sources can be plugged into the HistoricalDataFetcher without any changes to it.


✅ I have completed the following steps:

github-actions[bot] commented 2 weeks ago

Benchmark results for 5f37b72

Report: https://flashbots-rbuilder-ci-stats.s3.us-east-2.amazonaws.com/benchmark/5f37b72-b2cb717/report/index.html

Date (UTC) 2024-07-09T04:28:52+00:00
Commit 5f37b721a20f19fd8a3768848a462cabdc536fb2
Base SHA b2cb71773c8d0c679ff56cd39b79010e6a48ed34

Significant changes

Benchmark Mean Status
MEV-Boost SubmitBlock serialization/JSON encoding -8.12% Performance has improved.