[#229] v2/object: Add hash fields to ShortHeader message

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-12-17 13:18:07 +03:00
parent b2528d4c59
commit 8fe135ab8c
5 changed files with 81 additions and 1 deletions

View file

@ -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
}