ipfs / ipfs/kubo

ipfs dag stat improperly return size of dags that include the same blocks multiple time as different codecs

Open
#8,794 0 comments 0 reactions 0 assignees View on GitHub
kind/bug need/triage
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

### Checklist

- [X] This is a bug report, not a question. Ask questions on [discuss.ipfs.io](https://discuss.ipfs.io).
- [X] I have searched on the [issue tracker](https://github.com/ipfs/go-ipfs/issues?q=is%3Aissue) for my bug.
- [X] I am running the latest [go-ipfs version](https://dist.ipfs.io/#go-ipfs) or have an issue updating.

### Installation method

built from source

### Version

```Text
v0.12.0
```

### Config

```json
N/A
```

### Description

A dag like this:
```
Qmfoo -> bafkreibar
Qmfoo -> bafybeibar
bafybeibar -> bafkreibaz
```
Will count `bafkreibar` and `bafybeibar` twice even tho since v0.12.0 and multihash datastore keying it is actually only stored once.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.