Open
Description
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