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

test: Add unit tests + ci to test the txfetcher #12

Closed ferranbt closed 1 week ago

ferranbt commented 2 weeks ago

📝 Summary

This PR adds a unit test to check the end-to-end functionality of the transaction fetcher. It uses an anvil node as an Eth client to subscribe to its transactions. Adding also anvil to the CI/CD pipeline.

The setup for the test is a bit verbose now but I imagine that if this pattern becomes useful (unit testing with a real Eth node) we will create more concrete util abstractions.


✅ I have completed the following steps:

github-actions[bot] commented 2 weeks ago

Benchmark results for 5ffff43

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

Date (UTC) 2024-07-03T13:07:18+00:00
Commit 5ffff4307b6c0730439a514913503428ed3c2309
Base SHA f46871217ce85a9f9082663140544bcfe7e6685f

Significant changes

Benchmark Mean Status
MEV-Boost SubmitBlock serialization/JSON encoding 4.06% Performance has degraded.