-
Notifications
You must be signed in to change notification settings - Fork 0
Add persistent storage using BoltDB or BadgerDB #3
Copy link
Copy link
Open
Description
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
Blockchainstruct to include DB reference if needed
Options
- https://github.com/etcd-io/bbolt (BoltDB)
- https://github.com/dgraph-io/badger (BadgerDB)
Benefit
Enables durability and scalability for future node syncing and inspection tools.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels