Skip to content

Add BlockDatabase interface to database #4133

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

DracoLi
Copy link
Contributor

@DracoLi DracoLi commented Jul 28, 2025

Why this should be merged

Add an BlockDatabase interface to database package. This will be used by the VMs to integrate x/blockdb.

How this works

Interface added to database/database.go

How this was tested

Need to be documented in RELEASES.md?

No

@joshua-kim joshua-kim moved this to Backlog 🧊 in avalanchego Aug 18, 2025
Base automatically changed from dl/blockdb to master August 19, 2025 16:18
@DracoLi DracoLi force-pushed the dl/blockdb-interface branch from d1c75ba to dfc9873 Compare August 22, 2025 15:56
@DracoLi DracoLi marked this pull request as ready for review August 22, 2025 16:17
@Copilot Copilot AI review requested due to automatic review settings August 22, 2025 16:17
@DracoLi DracoLi requested review from a team and maru-ava and removed request for a team August 22, 2025 16:18
Copilot

This comment was marked as outdated.

@DracoLi DracoLi requested a review from Copilot August 22, 2025 17:44
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new BlockDatabase interface to the database package to provide a standardized API for blockchain block storage and retrieval operations. This interface will enable VM integration with the x/blockdb component.

  • Introduces BlockDatabase interface with methods for block CRUD operations
  • Adds inspection and resource management capabilities to the interface

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Draco <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog 🧊
Development

Successfully merging this pull request may close these issues.

2 participants