From 20582037c570d941766c2f785087bfcf08ea524c Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Sun, 11 Jul 2021 14:02:15 -0400 Subject: [PATCH] Fix Lotus shed --- cmd/lotus-shed/election.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/lotus-shed/election.go b/cmd/lotus-shed/election.go index dcc5e5c4d..d49d5c04f 100644 --- a/cmd/lotus-shed/election.go +++ b/cmd/lotus-shed/election.go @@ -6,9 +6,10 @@ import ( "fmt" "math/rand" + "github.com/filecoin-project/lotus/api/v0api" + "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-types/abi" - "github.com/filecoin-project/lotus/api" "github.com/filecoin-project/lotus/chain/gen" "github.com/filecoin-project/lotus/chain/types" lcli "github.com/filecoin-project/lotus/cli" @@ -199,7 +200,7 @@ var electionBacktest = &cli.Command{ }, } -func backTestWinner(ctx context.Context, miner address.Address, round abi.ChainEpoch, ts *types.TipSet, api api.FullNode) (*types.ElectionProof, error) { +func backTestWinner(ctx context.Context, miner address.Address, round abi.ChainEpoch, ts *types.TipSet, api v0api.FullNode) (*types.ElectionProof, error) { mbi, err := api.MinerGetBaseInfo(ctx, miner, round, ts.Key()) if err != nil { return nil, xerrors.Errorf("failed to get mining base info: %w", err)