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

Merged
merged 21 commits into from
May 15, 2025

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

@ceyonur ceyonur marked this pull request as ready for review May 9, 2025 22:10
@ceyonur ceyonur requested a review from a team as a code owner May 9, 2025 22:10
@ceyonur ceyonur changed the base branch from master to ceyonur/bump-avalanchego-53d0f1d May 13, 2025 21:56
ceyonur added 2 commits May 15, 2025 15:39
Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Base automatically changed from ceyonur/bump-avalanchego-53d0f1d to master May 15, 2025 16:19
@ceyonur ceyonur enabled auto-merge May 15, 2025 16:36
@ceyonur ceyonur added this pull request to the merge queue May 15, 2025
Merged via the queue into master with commit 21056ca May 15, 2025
14 checks passed
@ceyonur ceyonur deleted the ceyonur/use-avagodb-factory branch May 15, 2025 17:06
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.

3 participants