fix(lotus-miner): output correct proposal CID

update storage-deals list command to output the correct proposal CID. previously we were taking the
CID without the client signature, which will not be the same CID
This commit is contained in:
hannahhoward 2020-08-04 08:22:47 -07:00
parent cd8537e76f
commit 1b38791d94

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