Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Block stats #83

Open
achingbrain opened this issue Dec 4, 2018 · 3 comments
Open

Block stats #83

achingbrain opened this issue Dec 4, 2018 · 3 comments
Labels
status/deferred Conscious decision to pause or backlog

Comments

@achingbrain
Copy link
Member

Is there a way to get some stats about a block? Things like it's total size, how much of it is in the local blockstore (e.g. won't be fetched from the network), etc?

This is to implement the missing fields in ipfs.files.stat(path) - see ipfs/js-ipfs-mfs#13 for more.

@daviddias
Copy link
Member

A block is just a block, seems you want to get stats on a Graph and info available on the IPFS Repo. Things like GraphSync will need this info too so perhaps @vmx already something in the works?

@daviddias daviddias added the status/deferred Conscious decision to pause or backlog label Dec 9, 2018
@vmx
Copy link
Member

vmx commented Dec 10, 2018

I don't have anything in the works.

@olizilla
Copy link
Member

olizilla commented Dec 12, 2018

There is a more simple need for a way to ask the block service if it has a block locally or not. A UI could this use to choose if it should prepare the user for a wait while a block is searched for on the network vs fetching the content immedietly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/deferred Conscious decision to pause or backlog
Projects
None yet
Development

No branches or pull requests

4 participants