add RuntimeSubsystems API method; use it in lotus-miner info
This commit is contained in:
committed by
Jennifer Wang
parent
5073c7e6cf
commit
9b7a7713a7
@@ -48,6 +48,8 @@ import (
|
||||
type StorageMinerAPI struct {
|
||||
fx.In
|
||||
|
||||
Subsystems api.MinerSubsystems
|
||||
|
||||
api.Common
|
||||
api.Net
|
||||
|
||||
@@ -703,4 +705,8 @@ func (sm *StorageMinerAPI) ComputeProof(ctx context.Context, ssi []builtin.Secto
|
||||
return sm.Epp.ComputeProof(ctx, ssi, rand)
|
||||
}
|
||||
|
||||
func (sm *StorageMinerAPI) RuntimeSubsystems(context.Context) (res api.MinerSubsystems, err error) {
|
||||
return sm.Subsystems, nil
|
||||
}
|
||||
|
||||
var _ api.StorageMiner = &StorageMinerAPI{}
|
||||
|
||||
Reference in New Issue
Block a user