This commit is contained in:
zenground0
2022-04-14 19:32:56 +03:00
committed by vyzo
parent 60d09579be
commit 0f6da17cd1
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -167,8 +167,16 @@ var terminationsCmd = &cli.Command{
if err != nil {
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 {
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)
}
}
}
+1 -1
View File
@@ -271,7 +271,7 @@ func (mapi *CurrentDealInfoMockAPI) ChainGetMessage(ctx context.Context, c cid.C
for k, dl := range mapi.MarketDeals {
dealIDs = append(dealIDs, k.DealID)
deals = append(deals, market.ClientDealProposal{
Proposal: market8.DealProposal(market.DealProposal(dl.Proposal)),
Proposal: market8.DealProposal(dl.Proposal),
ClientSignature: crypto.Signature{
Data: []byte("foo bar cat dog"),
Type: crypto.SigTypeBLS,