EC put #1064
1 changed files with 9 additions and 0 deletions
|
@ -171,6 +171,15 @@ func printHeader(cmd *cobra.Command, obj *objectSDK.Object) error {
|
|||
cmd.Printf(" signature: %s\n", hex.EncodeToString(sigV2.GetSign()))
|
||||
}
|
||||
|
||||
if ecHeader := obj.ECHeader(); ecHeader != nil {
|
||||
cmd.Print("EC header:\n")
|
||||
|
||||
cmd.Printf(" parent object ID: %s\n", ecHeader.Parent().EncodeToString())
|
||||
cmd.Printf(" index: %d\n", ecHeader.Index())
|
||||
cmd.Printf(" total: %d\n", ecHeader.Total())
|
||||
cmd.Printf(" header length: %d\n", ecHeader.HeaderLength())
|
||||
}
|
||||
|
||||
return printSplitHeader(cmd, obj)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue