Skip to content

Add persistent storage using BoltDB or BadgerDB #3

@devduart

Description

@devduart

Summary

Replace in-memory blockchain with persistent key-value storage to preserve data between sessions.

Tasks

  • Choose and integrate BoltDB or BadgerDB
  • Store each block with its hash as key
  • On startup, load the blockchain from the database
  • Implement block existence check and block-by-hash retrieval
  • Refactor Blockchain struct to include DB reference if needed

Options

Benefit

Enables durability and scalability for future node syncing and inspection tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions