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
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
c9a5f7ac
Commit
c9a5f7ac
authored
Sep 03, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
17fc7c92
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
114 additions
and
188 deletions
+114
-188
go/neo/proto.go
go/neo/proto.go
+2
-0
go/neo/py/pyneo-gen-testdata
go/neo/py/pyneo-gen-testdata
+5
-0
go/neo/zproto-marshal.go
go/neo/zproto-marshal.go
+102
-183
go/neo/ztestdata_proto_py_test.go
go/neo/ztestdata_proto_py_test.go
+5
-5
No files found.
go/neo/proto.go
View file @
c9a5f7ac
...
...
@@ -638,6 +638,7 @@ type AnswerTIDs struct {
TIDList
[]
zodb
.
Tid
}
/*
// Ask for length TIDs starting at min_tid. The order of TIDs is ascending.
// C -> S.
// Answer the requested TIDs. S -> C
...
...
@@ -652,6 +653,7 @@ type TIDListFrom struct {
type AnswerTIDListFrom struct {
TidList []zodb.Tid
}
*/
// Ask information about a transaction. Any -> S.
// Answer information (user, description) about a transaction. S -> Any.
...
...
go/neo/py/pyneo-gen-testdata
View file @
c9a5f7ac
...
...
@@ -41,8 +41,13 @@ noask('RebaseObject')
noask
(
'StoreObject'
)
noask
(
'StoreTransaction'
)
noask
(
'VoteTransaction'
)
noask
(
'TransactionInformation'
)
noask
(
'ObjectHistory'
)
noask
(
'PartitionList'
)
noask
(
'NodeList'
)
_
=
renames
_
[
'AskPrimary'
]
=
'PrimaryMaster'
_
[
'AskObject'
]
=
'GetObject'
...
...
go/neo/zproto-marshal.go
View file @
c9a5f7ac
...
...
@@ -2042,89 +2042,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 54. TIDListFrom
func
(
*
TIDListFrom
)
neoMsgCode
()
uint16
{
return
54
}
func
(
p
*
TIDListFrom
)
neoMsgEncodedLen
()
int
{
return
24
}
func
(
p
*
TIDListFrom
)
neoMsgEncode
(
data
[]
byte
)
{
binary
.
BigEndian
.
PutUint64
(
data
[
0
:
],
uint64
(
p
.
MinTID
))
binary
.
BigEndian
.
PutUint64
(
data
[
8
:
],
uint64
(
p
.
MaxTID
))
binary
.
BigEndian
.
PutUint32
(
data
[
16
:
],
p
.
Length
)
binary
.
BigEndian
.
PutUint32
(
data
[
20
:
],
p
.
Partition
)
}
func
(
p
*
TIDListFrom
)
neoMsgDecode
(
data
[]
byte
)
(
int
,
error
)
{
if
uint32
(
len
(
data
))
<
24
{
goto
overflow
}
p
.
MinTID
=
zodb
.
Tid
(
binary
.
BigEndian
.
Uint64
(
data
[
0
:
]))
p
.
MaxTID
=
zodb
.
Tid
(
binary
.
BigEndian
.
Uint64
(
data
[
8
:
]))
p
.
Length
=
binary
.
BigEndian
.
Uint32
(
data
[
16
:
])
p
.
Partition
=
binary
.
BigEndian
.
Uint32
(
data
[
20
:
])
return
24
,
nil
overflow
:
return
0
,
ErrDecodeOverflow
}
// 55. AnswerTIDListFrom
func
(
*
AnswerTIDListFrom
)
neoMsgCode
()
uint16
{
return
55
|
answerBit
}
func
(
p
*
AnswerTIDListFrom
)
neoMsgEncodedLen
()
int
{
return
4
+
len
(
p
.
TidList
)
*
8
}
func
(
p
*
AnswerTIDListFrom
)
neoMsgEncode
(
data
[]
byte
)
{
{
l
:=
uint32
(
len
(
p
.
TidList
))
binary
.
BigEndian
.
PutUint32
(
data
[
0
:
],
l
)
data
=
data
[
4
:
]
for
i
:=
0
;
uint32
(
i
)
<
l
;
i
++
{
a
:=
&
p
.
TidList
[
i
]
binary
.
BigEndian
.
PutUint64
(
data
[
0
:
],
uint64
((
*
a
)))
data
=
data
[
8
:
]
}
}
}
func
(
p
*
AnswerTIDListFrom
)
neoMsgDecode
(
data
[]
byte
)
(
int
,
error
)
{
var
nread
uint32
if
uint32
(
len
(
data
))
<
4
{
goto
overflow
}
{
l
:=
binary
.
BigEndian
.
Uint32
(
data
[
0
:
])
data
=
data
[
4
:
]
if
uint32
(
len
(
data
))
<
l
*
8
{
goto
overflow
}
nread
+=
l
*
8
p
.
TidList
=
make
([]
zodb
.
Tid
,
l
)
for
i
:=
0
;
uint32
(
i
)
<
l
;
i
++
{
a
:=
&
p
.
TidList
[
i
]
(
*
a
)
=
zodb
.
Tid
(
binary
.
BigEndian
.
Uint64
(
data
[
0
:
]))
data
=
data
[
8
:
]
}
}
return
4
+
int
(
nread
),
nil
overflow
:
return
0
,
ErrDecodeOverflow
}
// 56. TransactionInformation
// 54. TransactionInformation
func
(
*
TransactionInformation
)
neoMsgCode
()
uint16
{
return
5
6
return
5
4
}
func
(
p
*
TransactionInformation
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2146,10 +2067,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 5
7
. AnswerTransactionInformation
// 5
5
. AnswerTransactionInformation
func
(
*
AnswerTransactionInformation
)
neoMsgCode
()
uint16
{
return
5
7
|
answerBit
return
5
5
|
answerBit
}
func
(
p
*
AnswerTransactionInformation
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2249,10 +2170,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 5
8
. ObjectHistory
// 5
6
. ObjectHistory
func
(
*
ObjectHistory
)
neoMsgCode
()
uint16
{
return
5
8
return
5
6
}
func
(
p
*
ObjectHistory
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2278,10 +2199,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 5
9
. AnswerObjectHistory
// 5
7
. AnswerObjectHistory
func
(
*
AnswerObjectHistory
)
neoMsgCode
()
uint16
{
return
5
9
|
answerBit
return
5
7
|
answerBit
}
func
(
p
*
AnswerObjectHistory
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2333,10 +2254,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
//
60
. PartitionList
//
58
. PartitionList
func
(
*
PartitionList
)
neoMsgCode
()
uint16
{
return
60
return
58
}
func
(
p
*
PartitionList
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2362,10 +2283,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
//
61
. AnswerPartitionList
//
59
. AnswerPartitionList
func
(
*
AnswerPartitionList
)
neoMsgCode
()
uint16
{
return
61
|
answerBit
return
59
|
answerBit
}
func
(
p
*
AnswerPartitionList
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2442,10 +2363,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 6
2
. NodeList
// 6
0
. NodeList
func
(
*
NodeList
)
neoMsgCode
()
uint16
{
return
6
2
return
6
0
}
func
(
p
*
NodeList
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2467,10 +2388,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 6
3
. AnswerNodeList
// 6
1
. AnswerNodeList
func
(
*
AnswerNodeList
)
neoMsgCode
()
uint16
{
return
6
3
|
answerBit
return
6
1
|
answerBit
}
func
(
p
*
AnswerNodeList
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2545,10 +2466,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 6
4
. SetNodeState
// 6
2
. SetNodeState
func
(
*
SetNodeState
)
neoMsgCode
()
uint16
{
return
6
4
return
6
2
}
func
(
p
*
SetNodeState
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2572,10 +2493,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 6
5
. AddPendingNodes
// 6
3
. AddPendingNodes
func
(
*
AddPendingNodes
)
neoMsgCode
()
uint16
{
return
6
5
return
6
3
}
func
(
p
*
AddPendingNodes
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2620,10 +2541,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 6
6
. TweakPartitionTable
// 6
4
. TweakPartitionTable
func
(
*
TweakPartitionTable
)
neoMsgCode
()
uint16
{
return
6
6
return
6
4
}
func
(
p
*
TweakPartitionTable
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2668,10 +2589,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 6
7
. NodeInformation
// 6
5
. NodeInformation
func
(
*
NodeInformation
)
neoMsgCode
()
uint16
{
return
6
7
return
6
5
}
func
(
p
*
NodeInformation
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2685,10 +2606,10 @@ func (p *NodeInformation) neoMsgDecode(data []byte) (int, error) {
return
0
,
nil
}
// 6
8
. SetClusterState
// 6
6
. SetClusterState
func
(
*
SetClusterState
)
neoMsgCode
()
uint16
{
return
6
8
return
6
6
}
func
(
p
*
SetClusterState
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2710,10 +2631,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 6
9
. repairFlags
// 6
7
. repairFlags
func
(
*
repairFlags
)
neoMsgCode
()
uint16
{
return
6
9
return
6
7
}
func
(
p
*
repairFlags
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2735,10 +2656,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
//
70
. Repair
//
68
. Repair
func
(
*
Repair
)
neoMsgCode
()
uint16
{
return
70
return
68
}
func
(
p
*
Repair
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2785,10 +2706,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
//
71
. RepairOne
//
69
. RepairOne
func
(
*
RepairOne
)
neoMsgCode
()
uint16
{
return
71
return
69
}
func
(
p
*
RepairOne
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2810,10 +2731,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 7
2
. NotifyClusterState
// 7
0
. NotifyClusterState
func
(
*
NotifyClusterState
)
neoMsgCode
()
uint16
{
return
7
2
return
7
0
}
func
(
p
*
NotifyClusterState
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2835,10 +2756,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 7
3
. AskClusterState
// 7
1
. AskClusterState
func
(
*
AskClusterState
)
neoMsgCode
()
uint16
{
return
7
3
return
7
1
}
func
(
p
*
AskClusterState
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2852,10 +2773,10 @@ func (p *AskClusterState) neoMsgDecode(data []byte) (int, error) {
return
0
,
nil
}
// 7
4
. AnswerClusterState
// 7
2
. AnswerClusterState
func
(
*
AnswerClusterState
)
neoMsgCode
()
uint16
{
return
7
4
|
answerBit
return
7
2
|
answerBit
}
func
(
p
*
AnswerClusterState
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2877,10 +2798,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 7
5
. ObjectUndoSerial
// 7
3
. ObjectUndoSerial
func
(
*
ObjectUndoSerial
)
neoMsgCode
()
uint16
{
return
7
5
return
7
3
}
func
(
p
*
ObjectUndoSerial
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2931,10 +2852,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 7
6
. AnswerObjectUndoSerial
// 7
4
. AnswerObjectUndoSerial
func
(
*
AnswerObjectUndoSerial
)
neoMsgCode
()
uint16
{
return
7
6
|
answerBit
return
7
4
|
answerBit
}
func
(
p
*
AnswerObjectUndoSerial
)
neoMsgEncodedLen
()
int
{
...
...
@@ -2999,10 +2920,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 7
7
. CheckCurrentSerial
// 7
5
. CheckCurrentSerial
func
(
*
CheckCurrentSerial
)
neoMsgCode
()
uint16
{
return
7
7
return
7
5
}
func
(
p
*
CheckCurrentSerial
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3028,10 +2949,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 7
8
. Pack
// 7
6
. Pack
func
(
*
Pack
)
neoMsgCode
()
uint16
{
return
7
8
return
7
6
}
func
(
p
*
Pack
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3053,10 +2974,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 7
9
. AnswerPack
// 7
7
. AnswerPack
func
(
*
AnswerPack
)
neoMsgCode
()
uint16
{
return
7
9
|
answerBit
return
7
7
|
answerBit
}
func
(
p
*
AnswerPack
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3078,10 +2999,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
//
80
. CheckReplicas
//
78
. CheckReplicas
func
(
*
CheckReplicas
)
neoMsgCode
()
uint16
{
return
80
return
78
}
func
(
p
*
CheckReplicas
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3136,10 +3057,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
//
81
. CheckPartition
//
79
. CheckPartition
func
(
*
CheckPartition
)
neoMsgCode
()
uint16
{
return
81
return
79
}
func
(
p
*
CheckPartition
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3202,10 +3123,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 8
2
. CheckTIDRange
// 8
0
. CheckTIDRange
func
(
*
CheckTIDRange
)
neoMsgCode
()
uint16
{
return
8
2
return
8
0
}
func
(
p
*
CheckTIDRange
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3233,10 +3154,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 8
3
. AnswerCheckTIDRange
// 8
1
. AnswerCheckTIDRange
func
(
*
AnswerCheckTIDRange
)
neoMsgCode
()
uint16
{
return
8
3
|
answerBit
return
8
1
|
answerBit
}
func
(
p
*
AnswerCheckTIDRange
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3262,10 +3183,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 8
4
. CheckSerialRange
// 8
2
. CheckSerialRange
func
(
*
CheckSerialRange
)
neoMsgCode
()
uint16
{
return
8
4
return
8
2
}
func
(
p
*
CheckSerialRange
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3295,10 +3216,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 8
5
. AnswerCheckSerialRange
// 8
3
. AnswerCheckSerialRange
func
(
*
AnswerCheckSerialRange
)
neoMsgCode
()
uint16
{
return
8
5
|
answerBit
return
8
3
|
answerBit
}
func
(
p
*
AnswerCheckSerialRange
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3328,10 +3249,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 8
6
. PartitionCorrupted
// 8
4
. PartitionCorrupted
func
(
*
PartitionCorrupted
)
neoMsgCode
()
uint16
{
return
8
6
return
8
4
}
func
(
p
*
PartitionCorrupted
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3378,10 +3299,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 8
7
. LastTransaction
// 8
5
. LastTransaction
func
(
*
LastTransaction
)
neoMsgCode
()
uint16
{
return
8
7
return
8
5
}
func
(
p
*
LastTransaction
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3395,10 +3316,10 @@ func (p *LastTransaction) neoMsgDecode(data []byte) (int, error) {
return
0
,
nil
}
// 8
8
. AnswerLastTransaction
// 8
6
. AnswerLastTransaction
func
(
*
AnswerLastTransaction
)
neoMsgCode
()
uint16
{
return
8
8
|
answerBit
return
8
6
|
answerBit
}
func
(
p
*
AnswerLastTransaction
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3420,10 +3341,10 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 8
9
. NotifyReady
// 8
7
. NotifyReady
func
(
*
NotifyReady
)
neoMsgCode
()
uint16
{
return
8
9
return
8
7
}
func
(
p
*
NotifyReady
)
neoMsgEncodedLen
()
int
{
...
...
@@ -3493,40 +3414,38 @@ var msgTypeRegistry = map[uint16]reflect.Type{
51
|
answerBit
:
reflect
.
TypeOf
(
AnswerObject
{}),
52
:
reflect
.
TypeOf
(
AskTIDs
{}),
53
|
answerBit
:
reflect
.
TypeOf
(
AnswerTIDs
{}),
54
:
reflect
.
TypeOf
(
TIDListFrom
{}),
55
|
answerBit
:
reflect
.
TypeOf
(
AnswerTIDListFrom
{}),
56
:
reflect
.
TypeOf
(
TransactionInformation
{}),
57
|
answerBit
:
reflect
.
TypeOf
(
AnswerTransactionInformation
{}),
58
:
reflect
.
TypeOf
(
ObjectHistory
{}),
59
|
answerBit
:
reflect
.
TypeOf
(
AnswerObjectHistory
{}),
60
:
reflect
.
TypeOf
(
PartitionList
{}),
61
|
answerBit
:
reflect
.
TypeOf
(
AnswerPartitionList
{}),
62
:
reflect
.
TypeOf
(
NodeList
{}),
63
|
answerBit
:
reflect
.
TypeOf
(
AnswerNodeList
{}),
64
:
reflect
.
TypeOf
(
SetNodeState
{}),
65
:
reflect
.
TypeOf
(
AddPendingNodes
{}),
66
:
reflect
.
TypeOf
(
TweakPartitionTable
{}),
67
:
reflect
.
TypeOf
(
NodeInformation
{}),
68
:
reflect
.
TypeOf
(
SetClusterState
{}),
69
:
reflect
.
TypeOf
(
repairFlags
{}),
70
:
reflect
.
TypeOf
(
Repair
{}),
71
:
reflect
.
TypeOf
(
RepairOne
{}),
72
:
reflect
.
TypeOf
(
NotifyClusterState
{}),
73
:
reflect
.
TypeOf
(
AskClusterState
{}),
74
|
answerBit
:
reflect
.
TypeOf
(
AnswerClusterState
{}),
75
:
reflect
.
TypeOf
(
ObjectUndoSerial
{}),
76
|
answerBit
:
reflect
.
TypeOf
(
AnswerObjectUndoSerial
{}),
77
:
reflect
.
TypeOf
(
CheckCurrentSerial
{}),
78
:
reflect
.
TypeOf
(
Pack
{}),
79
|
answerBit
:
reflect
.
TypeOf
(
AnswerPack
{}),
80
:
reflect
.
TypeOf
(
CheckReplicas
{}),
81
:
reflect
.
TypeOf
(
CheckPartition
{}),
82
:
reflect
.
TypeOf
(
CheckTIDRange
{}),
83
|
answerBit
:
reflect
.
TypeOf
(
AnswerCheckTIDRange
{}),
84
:
reflect
.
TypeOf
(
CheckSerialRange
{}),
85
|
answerBit
:
reflect
.
TypeOf
(
AnswerCheckSerialRange
{}),
86
:
reflect
.
TypeOf
(
PartitionCorrupted
{}),
87
:
reflect
.
TypeOf
(
LastTransaction
{}),
88
|
answerBit
:
reflect
.
TypeOf
(
AnswerLastTransaction
{}),
89
:
reflect
.
TypeOf
(
NotifyReady
{}),
54
:
reflect
.
TypeOf
(
TransactionInformation
{}),
55
|
answerBit
:
reflect
.
TypeOf
(
AnswerTransactionInformation
{}),
56
:
reflect
.
TypeOf
(
ObjectHistory
{}),
57
|
answerBit
:
reflect
.
TypeOf
(
AnswerObjectHistory
{}),
58
:
reflect
.
TypeOf
(
PartitionList
{}),
59
|
answerBit
:
reflect
.
TypeOf
(
AnswerPartitionList
{}),
60
:
reflect
.
TypeOf
(
NodeList
{}),
61
|
answerBit
:
reflect
.
TypeOf
(
AnswerNodeList
{}),
62
:
reflect
.
TypeOf
(
SetNodeState
{}),
63
:
reflect
.
TypeOf
(
AddPendingNodes
{}),
64
:
reflect
.
TypeOf
(
TweakPartitionTable
{}),
65
:
reflect
.
TypeOf
(
NodeInformation
{}),
66
:
reflect
.
TypeOf
(
SetClusterState
{}),
67
:
reflect
.
TypeOf
(
repairFlags
{}),
68
:
reflect
.
TypeOf
(
Repair
{}),
69
:
reflect
.
TypeOf
(
RepairOne
{}),
70
:
reflect
.
TypeOf
(
NotifyClusterState
{}),
71
:
reflect
.
TypeOf
(
AskClusterState
{}),
72
|
answerBit
:
reflect
.
TypeOf
(
AnswerClusterState
{}),
73
:
reflect
.
TypeOf
(
ObjectUndoSerial
{}),
74
|
answerBit
:
reflect
.
TypeOf
(
AnswerObjectUndoSerial
{}),
75
:
reflect
.
TypeOf
(
CheckCurrentSerial
{}),
76
:
reflect
.
TypeOf
(
Pack
{}),
77
|
answerBit
:
reflect
.
TypeOf
(
AnswerPack
{}),
78
:
reflect
.
TypeOf
(
CheckReplicas
{}),
79
:
reflect
.
TypeOf
(
CheckPartition
{}),
80
:
reflect
.
TypeOf
(
CheckTIDRange
{}),
81
|
answerBit
:
reflect
.
TypeOf
(
AnswerCheckTIDRange
{}),
82
:
reflect
.
TypeOf
(
CheckSerialRange
{}),
83
|
answerBit
:
reflect
.
TypeOf
(
AnswerCheckSerialRange
{}),
84
:
reflect
.
TypeOf
(
PartitionCorrupted
{}),
85
:
reflect
.
TypeOf
(
LastTransaction
{}),
86
|
answerBit
:
reflect
.
TypeOf
(
AnswerLastTransaction
{}),
87
:
reflect
.
TypeOf
(
NotifyReady
{}),
}
go/neo/ztestdata_proto_py_test.go
View file @
c9a5f7ac
...
...
@@ -5,7 +5,7 @@ var pyMsgRegistry = map[uint16]string{
1
:
"RequestIdentification"
,
3
:
"Ping"
,
5
:
"CloseClient"
,
6
:
"
AskPrimary
"
,
6
:
"
PrimaryMaster
"
,
8
:
"NotPrimaryMaster"
,
9
:
"NotifyNodeInformation"
,
10
:
"Recovery"
,
...
...
@@ -35,10 +35,10 @@ var pyMsgRegistry = map[uint16]string{
48
:
"VoteTransaction"
,
50
:
"GetObject"
,
52
:
"AskTIDs"
,
54
:
"
Ask
TransactionInformation"
,
56
:
"
Ask
ObjectHistory"
,
58
:
"
Ask
PartitionList"
,
60
:
"
Ask
NodeList"
,
54
:
"TransactionInformation"
,
56
:
"ObjectHistory"
,
58
:
"PartitionList"
,
60
:
"NodeList"
,
62
:
"SetNodeState"
,
63
:
"AddPendingNodes"
,
64
:
"TweakPartitionTable"
,
...
...
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