Merge pull request #2560 from filecoin-project/feat/state-root-stat

add command to print state size statistics of actors
This commit is contained in:
Łukasz Magiera
2020-07-29 01:08:56 +02:00
committed by GitHub
4 changed files with 126 additions and 4 deletions
+5 -1
View File
@@ -68,7 +68,11 @@ type FullNode interface {
// ChainHasObj checks if a given CID exists in the chain blockstore.
ChainHasObj(context.Context, cid.Cid) (bool, error)
ChainStatObj(context.Context, cid.Cid, cid.Cid) (ObjStat, error)
// ChainStatObj returns statistics about the graph referenced by 'obj'.
// If 'base' is also specified, then the returned stat will be a diff
// between the two objects.
ChainStatObj(ctx context.Context, obj cid.Cid, base cid.Cid) (ObjStat, error)
// ChainSetHead forcefully sets current chain head. Use with caution.
ChainSetHead(context.Context, types.TipSetKey) error