forked from TrueCloudLab/frostfs-api-go
[#229] v2/object: Add hash fields to ShortHeader message
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
b2528d4c59
commit
8fe135ab8c
5 changed files with 81 additions and 1 deletions
|
@ -476,6 +476,8 @@ func generateShortHeader(id string) *object.ShortHeader {
|
|||
hdr.SetCreationEpoch(200)
|
||||
hdr.SetObjectType(object.TypeRegular)
|
||||
hdr.SetPayloadLength(10)
|
||||
hdr.SetPayloadHash(generateChecksum("payload hash"))
|
||||
hdr.SetHomomorphicHash(generateChecksum("homomorphic hash"))
|
||||
|
||||
return hdr
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue