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

feat: Allow for changing cached reads inside of BlockBuildingHelperFromDB #189

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

7suyash7
Copy link
Contributor

#178

  • Added update_cached_reads method to the BlockBuildingHelper trait
  • Implemented update_cached_reads for BlockBuildingHelperFromDB
  • Updated MockBlockBuildingHelper to include an unimplemented update_cached_reads method

✅ I have completed the following steps:

  • [ ✅] Run make lint
  • [✅ ] Run make test

Comment on lines 262 to 266

/// Updates the cached reads for the block state.
pub fn update_cached_reads(&mut self, cached_reads: CachedReads) {
self.block_state = self.block_state.clone().with_cached_reads(cached_reads);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this here as a pub function and not implemented directly on impl BlockBuildingHelper for BlockBuildingHelperFromDB?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, my bad, just fixed it.

Copy link

Benchmark results for 0468692

Report: https://flashbots-rbuilder-ci-stats.s3.us-east-2.amazonaws.com/benchmark/0468692-73629a2/report/index.html

Date (UTC) 2024-09-27T13:39:32+00:00
Commit 0468692b67e65e8822d3203e0051837b516e24ce
Base SHA 73629a2face0eeb18c0c5c6c5a79a62f25da7729

Significant changes

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

@ZanCorDX ZanCorDX merged commit 10495ea into flashbots:develop Sep 27, 2024
5 checks passed
astarinmymind pushed a commit that referenced this pull request Oct 3, 2024
…omDB (#189)

- Added `update_cached_reads` method to the `BlockBuildingHelper` trait
- Implemented `update_cached_reads` for `BlockBuildingHelperFromDB`
- Updated `MockBlockBuildingHelper` to include an unimplemented
`update_cached_reads` method

* [ ✅] Run `make lint`
* [✅ ] Run `make test`

---------

Signed-off-by: 7suyash7 <[email protected]>
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.

2 participants