-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update endpoint for dag size result on app/user updates #603
Labels
🐛 bug
Something isn't working
Comments
Looks like
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Problem
The fission-server is currently using a deprecated IPFS API to size usage apps and user file systems.
Impact
This means there is incorrect reporting in the database for how much space an app or user is using.
Solution
We should replace the call to the (deprectaed)
/api/v0/object/stat
endpoint (https://docs.ipfs.io/reference/http/api/#api-v0-object-stat) with a version that is "DAG" aware (that isn't re-counting common blocks in the DAG). The documentation recommends/api/v0/files/stat
(but/api/v0/dag/stat
might be more appropriate?).See also: fission-codes/kubo#56
The text was updated successfully, but these errors were encountered: