Merge pull request #5178 from filecoin-project/asr/ask-min-piece

Print MinPieceSize when querying ask
This commit is contained in:
Łukasz Magiera 2020-12-10 22:27:48 +01:00 committed by GitHub
commit c61f341b22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1429,6 +1429,7 @@ var clientQueryAskCmd = &cli.Command{
afmt.Printf("Price per GiB: %s\n", types.FIL(ask.Price)) afmt.Printf("Price per GiB: %s\n", types.FIL(ask.Price))
afmt.Printf("Verified Price per GiB: %s\n", types.FIL(ask.VerifiedPrice)) afmt.Printf("Verified Price per GiB: %s\n", types.FIL(ask.VerifiedPrice))
afmt.Printf("Max Piece size: %s\n", types.SizeStr(types.NewInt(uint64(ask.MaxPieceSize)))) afmt.Printf("Max Piece size: %s\n", types.SizeStr(types.NewInt(uint64(ask.MaxPieceSize))))
afmt.Printf("Min Piece size: %s\n", types.SizeStr(types.NewInt(uint64(ask.MinPieceSize))))
size := cctx.Int64("size") size := cctx.Int64("size")
if size == 0 { if size == 0 {