Merge pull request #2815 from filecoin-project/fix/storage-deals-prop-cid

Fix proposal CID in `lotus-miner storage-deals list`
This commit is contained in:
Łukasz Magiera 2020-08-04 17:41:51 +02:00 committed by GitHub
commit 1feec642da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()))))