From 72c7ec748fd15cae91b29f798fe2e8bc1a1933f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 26 Nov 2019 14:52:59 +0100 Subject: [PATCH] seed: Get params --- cmd/lotus-seed/main.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/cmd/lotus-seed/main.go b/cmd/lotus-seed/main.go index 8bbf4d9df..cb011a42b 100644 --- a/cmd/lotus-seed/main.go +++ b/cmd/lotus-seed/main.go @@ -9,15 +9,16 @@ import ( "os" "path/filepath" + badger "github.com/ipfs/go-ds-badger" + logging "github.com/ipfs/go-log" + "github.com/mitchellh/go-homedir" + "golang.org/x/xerrors" + "gopkg.in/urfave/cli.v2" + "github.com/filecoin-project/lotus/build" "github.com/filecoin-project/lotus/chain/address" "github.com/filecoin-project/lotus/genesis" "github.com/filecoin-project/lotus/lib/sectorbuilder" - - badger "github.com/ipfs/go-ds-badger" - logging "github.com/ipfs/go-log" - "github.com/mitchellh/go-homedir" - "gopkg.in/urfave/cli.v2" ) var log = logging.Logger("lotus-seed") @@ -108,6 +109,10 @@ var preSealCmd = &cli.Command{ return err } + if err := build.GetParams(true, false); err != nil { + return xerrors.Errorf("getting params: %w", err) + } + sb, err := sectorbuilder.New(cfg, mds) if err != nil { return err