Skip to content

use avago db factory to create new databases #1567

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ceyonur
Copy link
Collaborator

@ceyonur ceyonur commented Apr 18, 2025

Why this should be merged

Changes in ava-labs/avalanchego#3899 lets us to use AvalancheGo database factory to create standalone dbs.

How this works

This pull request includes several updates to dependencies, refactoring of database-related code, and cleanup of unused or outdated components. The changes streamline database handling, improve maintainability, and update dependencies for compatibility.

  • Updated github.com/ava-labs/avalanchego to branch at Move database creation to database factory package avalanchego#3899
  • Used avalanhego database/factory package to create new standalone dbs.
  • Removed the plugin/evm/database/database.go file, including the NewStandaloneDatabase and NewPebbleDB functions, and replaced them with a new implementation in plugin/evm/vm_database.go.
  • Replaced WrapDatabase with wrapDatabase and moved the implementation from plugin/evm/database/wrapped_database.go to plugin/evm/wrapped_database.go.

How this was tested

Existing tests should cover this

Need to be documented?

No

Need to update RELEASES.md?

No

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