Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Levin Zimmermann
neoppod
Commits
86c21792
Commit
86c21792
authored
Dec 27, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bcd93b0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
t/neo/marshal.go
t/neo/marshal.go
+5
-0
t/neo/proto.go
t/neo/proto.go
+2
-2
No files found.
t/neo/marshal.go
View file @
86c21792
...
...
@@ -30,3 +30,8 @@ func (p *NodeInfo) NEODecode(data []byte) (int, error) {
p
.
IdTimestamp
=
float64_NEODecode
(
data
[
10
:
])
return
18
/* + TODO variable part */
,
nil
}
func
(
p
*
CellInfo
)
NEODecode
(
data
[]
byte
)
(
int
,
error
)
{
p
.
UUID
=
int32
(
BigEndian
.
Uint32
(
data
[
0
:
]))
p
.
CellState
=
int32
(
BigEndian
.
Uint32
(
data
[
4
:
]))
return
8
/* + TODO variable part */
,
nil
}
t/neo/proto.go
View file @
86c21792
...
...
@@ -67,7 +67,7 @@ const (
UNKNOWN
//short: U
)
type
CellState
int
type
CellState
int
32
const
(
// NOTE cell states description is in protocol.py
UP_TO_DATE
CellState
=
iota
//short: U // XXX tag prefix name ?
...
...
@@ -163,13 +163,13 @@ type NodeInfo struct {
IdTimestamp
float64
}
/*
//type CellList []struct {
type
CellInfo
struct
{
UUID
CellState
}
/*
//type RowList []struct {
type RowInfo struct {
Offset uint32 // PNumber
...
...
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