From e09a560d5781718a4d1eb27c89435958610bc600 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 24 Jan 2022 14:19:42 +0300 Subject: [PATCH] [#187] status: Add detail with supported network magic Add detail for `WRONG_MAGIC_NUMBER` status code which carries the correct magic of the served network served. Clients will be able to fix incorrect magic and re-send the request. ID is 0, binary format is uint64 in big-endian. Signed-off-by: Leonard Lyubich --- status/types.proto | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/status/types.proto b/status/types.proto index d2c7f45..1c505d9 100644 --- a/status/types.proto +++ b/status/types.proto @@ -81,6 +81,9 @@ enum CommonFail { // use this code. INTERNAL = 0; - // [**1025**] Wrong magic of the NeoFS network. Not detailed. + // [**1025**] Wrong magic of the NeoFS network. + // Details: + // - [**0**] Magic number of the served NeoFS network (big-endian 64-bit + // unsigned integer). WRONG_MAGIC_NUMBER = 1; }