pond: Miner state viewer

This commit is contained in:
Łukasz Magiera
2019-10-27 11:27:21 +01:00
parent c1076a0c7d
commit 53cbe3446d
6 changed files with 74 additions and 11 deletions
+2 -2
View File
@@ -37,8 +37,8 @@ type StateAPI struct {
Chain *store.ChainStore
}
func (a *StateAPI) StateMinerSectors(ctx context.Context, addr address.Address) ([]*api.SectorInfo, error) {
return stmgr.GetMinerSectorSet(ctx, a.StateManager, nil, addr)
func (a *StateAPI) StateMinerSectors(ctx context.Context, addr address.Address, ts *types.TipSet) ([]*api.SectorInfo, error) {
return stmgr.GetMinerSectorSet(ctx, a.StateManager, ts, addr)
}
func (a *StateAPI) StateMinerProvingSet(ctx context.Context, addr address.Address, ts *types.TipSet) ([]*api.SectorInfo, error) {