Skip to content

Add more methods for the in-memory db#769

Open
ferranbt wants to merge 2 commits intoflashbots:mainfrom
ferranbt:feat-inmemory-db
Open

Add more methods for the in-memory db#769
ferranbt wants to merge 2 commits intoflashbots:mainfrom
ferranbt:feat-inmemory-db

Conversation

@ferranbt
Copy link
Contributor

@ferranbt ferranbt commented Dec 26, 2025

📝 Summary

This PR extends the current MockDB with an InmemoryDB implementation. InMemoryDB is an implementation of the DatabaseService interface. It does not implement all the methods of the interface but enough of them to have a functional mev-boost-relay service. This is the database that we have been using in https://github.com/flashbots/builder-playground to run mev-boost-relay in memory without Postgresql.

I also fixed the lint in a few places which were not part of this PR.

⛱ Motivation and Context

For quick testing scenarios, it is easier to run mev-boost-relay without Postgresql and with a temporal database.

📚 References


✅ I have run these commands

  • make lint
  • make test-race
  • go mod tidy
  • I have seen and agree to CONTRIBUTING.md

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.

1 participant