ipfs / ipfs/boxo

Consider expanding the core Blockstore interface

Open
#207 3 comments 0 reactions 0 assignees View on GitHub
need/triage
Dominant language
Go
Stars
316
Forks
163
Avg merge
4d 12h
Merged PRs (30d)
8

Description

Lotus, and by extension a few other blockstores currently use [the following interface](https://github.com/filecoin-project/lotus/blob/6afa99d0a1/blockstore/blockstore.go#L14-L35).
```
type Blockstore interface {
blockstore.Blockstore
blockstore.Viewer
BatchDeleter
Flusher
}
```

With the current plan of cloning go-libipfs with unforced migration-by-deprecation the time is right to augment the core interface to be just like the above.

For completeness here is [how lotus deals with the transition](https://github.com/filecoin-project/lotus/blob/6afa99d0a1/blockstore/blockstore.go#L108-L150)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.