Skip to content

Commit

Permalink
[nspcc-dev#187] status: Add detail with supported network magic
Browse files Browse the repository at this point in the history
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 <leonard@nspcc.ru>
  • Loading branch information
Leonard Lyubich authored and alexvanin committed Jan 27, 2022
1 parent d9d71cc commit e09a560
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion status/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit e09a560

Please sign in to comment.