client commP outputs Base32-encoded string
This commit is contained in:
parent
2347ba6f39
commit
b3eef76cdd
@ -102,11 +102,16 @@ var clientCommPCmd = &cli.Command{
|
||||
}
|
||||
|
||||
ret, err := api.ClientCalcCommP(ctx, cctx.Args().Get(0), miner)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Println("CID: ", ret.Root)
|
||||
|
||||
encoded, err := ret.Root.StringOfBase(multibase.Base32)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
fmt.Println("CID: ", encoded)
|
||||
fmt.Println("Piece size: ", ret.Size)
|
||||
return nil
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user