add RuntimeSubsystems API method; use it in lotus-miner info

This commit is contained in:
Anton Evangelatov
2021-07-29 04:38:19 -04:00
committed by Jennifer Wang
parent 5073c7e6cf
commit 9b7a7713a7
10 changed files with 580 additions and 280 deletions
+6
View File
@@ -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{}