Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefane Fermigier
neo
Commits
020ba117
Commit
020ba117
authored
Mar 20, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protocol: freeze code of RequestIdentification packet
parent
13182d61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
neo/lib/protocol.py
neo/lib/protocol.py
+8
-3
No files found.
neo/lib/protocol.py
View file @
020ba117
...
...
@@ -24,7 +24,7 @@ from struct import Struct
from
.util
import
Enum
,
getAddressType
# The protocol version (major, minor).
PROTOCOL_VERSION
=
(
7
,
1
)
PROTOCOL_VERSION
=
(
8
,
1
)
# Size restrictions.
MIN_PACKET_SIZE
=
10
...
...
@@ -1559,14 +1559,19 @@ class Packets(dict):
# notifications
Error
=
register
(
Error
)
RequestIdentification
,
AcceptIdentification
=
register
(
RequestIdentification
)
# Code of RequestIdentification packet must never change so that 2
# incompatible nodes can reject themselves gracefully (i.e. comparing
# protocol versions) instead of raising PacketMalformedError.
assert
RequestIdentification
.
_code
==
1
Ping
,
Pong
=
register
(
Ping
)
CloseClient
=
register
(
CloseClient
)
Notify
=
register
(
Notify
)
RequestIdentification
,
AcceptIdentification
=
register
(
RequestIdentification
)
AskPrimary
,
AnswerPrimary
=
register
(
PrimaryMaster
)
AnnouncePrimary
=
register
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment