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:
parent
cd8537e76f
commit
1b38791d94
@ -357,11 +357,7 @@ var dealsListCmd = &cli.Command{
|
|||||||
_, _ = fmt.Fprintf(w, "ProposalCid\tDealId\tState\tClient\tSize\tPrice\tDuration\n")
|
_, _ = fmt.Fprintf(w, "ProposalCid\tDealId\tState\tClient\tSize\tPrice\tDuration\n")
|
||||||
|
|
||||||
for _, deal := range deals {
|
for _, deal := range deals {
|
||||||
pc, err := deal.Proposal.Cid()
|
propcid := deal.ProposalCid.String()
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
propcid := pc.String()
|
|
||||||
propcid = "..." + propcid[len(propcid)-8:]
|
propcid = "..." + propcid[len(propcid)-8:]
|
||||||
|
|
||||||
fil := types.FIL(types.BigMul(deal.Proposal.StoragePricePerEpoch, types.NewInt(uint64(deal.Proposal.Duration()))))
|
fil := types.FIL(types.BigMul(deal.Proposal.StoragePricePerEpoch, types.NewInt(uint64(deal.Proposal.Duration()))))
|
||||||
|
Loading…
Reference in New Issue
Block a user