Skip to content

Commit

Permalink
Merge pull request #25 from filecoin-project/opt/no_params
Browse files Browse the repository at this point in the history
don't check params
  • Loading branch information
diwufeiwen authored Apr 16, 2021
2 parents c026316 + e15ca68 commit c032309
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ var initCmd = &cli.Command{

ctx := lcli.ReqContext(cctx)

log.Info("Checking proof parameters")
//log.Info("Checking proof parameters")

if err := fetchingProofParameters(ctx); err != nil {
return xerrors.Errorf("fetching proof parameters: %w", err)
}
//if err := fetchingProofParameters(ctx); err != nil {
// return xerrors.Errorf("fetching proof parameters: %w", err)
//}

log.Info("Trying to connect to full node RPC")

Expand Down Expand Up @@ -328,7 +328,7 @@ func SyncWait(ctx context.Context, napi api.FullNode, watch bool) error {
}
}

func fetchingProofParameters(ctx context.Context) error {
func fetchingProofParameters(ctx context.Context) error { // nolint
ss := make([]uint64, 0)

log.Info("SupportedProofTypes: ", miner0.SupportedProofTypes)
Expand Down
10 changes: 5 additions & 5 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ var runCmd = &cli.Command{

ctx := lcli.DaemonContext(cctx)

log.Info("Checking proof parameters")

if err := fetchingProofParameters(ctx); err != nil {
return xerrors.Errorf("fetching proof parameters: %w", err)
}
//log.Info("Checking proof parameters")
//
//if err := fetchingProofParameters(ctx); err != nil {
// return xerrors.Errorf("fetching proof parameters: %w", err)
//}

v, err := nodeApi.Version(ctx)
if err != nil {
Expand Down

0 comments on commit c032309

Please sign in to comment.