Skip to content

Commit

Permalink
Merge pull request #2815 from filecoin-project/fix/storage-deals-prop…
Browse files Browse the repository at this point in the history
…-cid

Fix proposal CID in `lotus-miner storage-deals list`
  • Loading branch information
magik6k committed Aug 4, 2020
2 parents 7fa666b + 1b38791 commit 1feec64
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/lotus-storage-miner/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,7 @@ var dealsListCmd = &cli.Command{
_, _ = fmt.Fprintf(w, "ProposalCid\tDealId\tState\tClient\tSize\tPrice\tDuration\n")

for _, deal := range deals {
pc, err := deal.Proposal.Cid()
if err != nil {
return err
}
propcid := pc.String()
propcid := deal.ProposalCid.String()
propcid = "..." + propcid[len(propcid)-8:]

fil := types.FIL(types.BigMul(deal.Proposal.StoragePricePerEpoch, types.NewInt(uint64(deal.Proposal.Duration()))))
Expand Down

0 comments on commit 1feec64

Please sign in to comment.