From 7ce0945e6c6c8be3f88630bfadf34acf737cd39f Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 4 Aug 2020 17:14:20 +0300 Subject: [PATCH] [#26] object: Remove unused Version field Field with object revision number was introduced for the future, however, at the moment it is not used anywhere. This commit removes field Version from SystemHeader message. It can be added back later without losing API backward compatibility. Signed-off-by: Leonard Lyubich --- object/types.proto | 10 ++++------ proto-docs/object.md | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/object/types.proto b/object/types.proto index 68eb1fa..76ab4cf 100644 --- a/object/types.proto +++ b/object/types.proto @@ -44,17 +44,15 @@ message ExtendedHeader { message Tombstone {} message SystemHeader { - // Version of the object structure - uint64 Version = 1; // PayloadLength is an object payload length - uint64 PayloadLength = 2; + uint64 PayloadLength = 1; // Address carries object address in the NeoFS system. // It encapsulates the object and the container identifiers. - refs.Address Address = 3; + refs.Address Address = 2; // OwnerID is a wallet address - bytes OwnerID = 4; + bytes OwnerID = 3; // CreationEpoch carries number of NeoFS epoch on which the object was created. - uint64 CreationEpoch = 6; + uint64 CreationEpoch = 4; } message IntegrityHeader { diff --git a/proto-docs/object.md b/proto-docs/object.md index 61deded..b6a1a54 100644 --- a/proto-docs/object.md +++ b/proto-docs/object.md @@ -476,7 +476,6 @@ SplitHeader groups information about spawning the object through a payload split | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| Version | [uint64](#uint64) | | Version of the object structure | | PayloadLength | [uint64](#uint64) | | PayloadLength is an object payload length | | Address | [refs.Address](#refs.Address) | | Address carries object address in the NeoFS system. It encapsulates the object and the container identifiers. | | OwnerID | [bytes](#bytes) | | OwnerID is a wallet address |