diff --git a/node/config/def.go b/node/config/def.go index 4013bde6e..8ca588f6e 100644 --- a/node/config/def.go +++ b/node/config/def.go @@ -277,6 +277,13 @@ func DefaultStorageMiner() *StorageMiner { MaxProviderCollateralMultiplier: 2, }, + Subsystems: MinerSubsystemConfig{ + EnableMining: true, + EnableSealing: true, + EnableSectorStorage: true, + EnableStorageMarket: true, + }, + Fees: MinerFeeConfig{ MaxPreCommitGasFee: types.MustParseFIL("0.025"), MaxCommitGasFee: types.MustParseFIL("0.05"), diff --git a/node/modules/storageminer_svc.go b/node/modules/storageminer_svc.go index 8718d236c..c0616cc14 100644 --- a/node/modules/storageminer_svc.go +++ b/node/modules/storageminer_svc.go @@ -28,7 +28,7 @@ func connectMinerService(apiInfo string) func(mctx helpers.MetricsCtx, lc fx.Lif return nil, xerrors.Errorf("could not get DialArgs: %w", err) } - log.Infof("Checking api version of %s", addr) + log.Infof("Checking (svc) api version of %s", addr) mapi, closer, err := client.NewStorageMinerRPCV0(ctx, addr, info.AuthHeader()) if err != nil { @@ -60,12 +60,14 @@ func connectMinerService(apiInfo string) func(mctx helpers.MetricsCtx, lc fx.Lif func ConnectSealingService(apiInfo string) func(mctx helpers.MetricsCtx, lc fx.Lifecycle) (MinerSealingService, error) { return func(mctx helpers.MetricsCtx, lc fx.Lifecycle) (MinerSealingService, error) { + log.Info("Connecting sealing service to miner") return connectMinerService(apiInfo)(mctx, lc) } } func ConnectStorageService(apiInfo string) func(mctx helpers.MetricsCtx, lc fx.Lifecycle) (MinerStorageService, error) { return func(mctx helpers.MetricsCtx, lc fx.Lifecycle) (MinerStorageService, error) { + log.Info("Connecting storage service to miner") return connectMinerService(apiInfo)(mctx, lc) } }