This commit is contained in:
zenground0 2022-04-08 08:03:14 -06:00 committed by vyzo
parent 60d09579be
commit 0f6da17cd1
2 changed files with 10 additions and 2 deletions

View File

@ -167,8 +167,16 @@ var terminationsCmd = &cli.Command{
if err != nil { if err != nil {
return err return err
} }
label, err := prop.Label.ToString()
if err != nil {
labelBs, err := prop.Label.ToBytes()
if err != nil {
return err
}
label = string(labelBs)
}
if find { if find {
fmt.Printf("%s, %d, %d, %s, %s, %s\n", msg.To, sector.SectorNumber, deal, prop.Client, prop.PieceCID, prop.Label) fmt.Printf("%s, %d, %d, %s, %s, %s\n", msg.To, sector.SectorNumber, deal, prop.Client, prop.PieceCID, label)
} }
} }
} }

View File

@ -271,7 +271,7 @@ func (mapi *CurrentDealInfoMockAPI) ChainGetMessage(ctx context.Context, c cid.C
for k, dl := range mapi.MarketDeals { for k, dl := range mapi.MarketDeals {
dealIDs = append(dealIDs, k.DealID) dealIDs = append(dealIDs, k.DealID)
deals = append(deals, market.ClientDealProposal{ deals = append(deals, market.ClientDealProposal{
Proposal: market8.DealProposal(market.DealProposal(dl.Proposal)), Proposal: market8.DealProposal(dl.Proposal),
ClientSignature: crypto.Signature{ ClientSignature: crypto.Signature{
Data: []byte("foo bar cat dog"), Data: []byte("foo bar cat dog"),
Type: crypto.SigTypeBLS, Type: crypto.SigTypeBLS,