Merge pull request #878 from filecoin-project/feat/cw-sset-counts

chainwatch: Collect sector set sizes
This commit is contained in:
Łukasz Magiera
2019-12-12 17:32:12 +01:00
committed by GitHub
9 changed files with 92 additions and 5 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ type Libp2p struct {
type Metrics struct {
Nickname string
HeadNotifs bool
HeadNotifs bool
PubsubTracing bool
}
+4
View File
@@ -358,3 +358,7 @@ func (a *StateAPI) StateChangedActors(ctx context.Context, old cid.Cid, new cid.
return out, nil
}
func (a *StateAPI) StateMinerSectorCount(ctx context.Context, addr address.Address, ts *types.TipSet) (api.MinerSectors, error) {
return stmgr.SectorSetSizes(ctx, a.StateManager, addr, ts)
}