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
3c9e9cf0
Commit
3c9e9cf0
authored
Dec 27, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c30669b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
t/neo/marshal.go
t/neo/marshal.go
+25
-0
t/neo/proto.go
t/neo/proto.go
+1
-1
No files found.
t/neo/marshal.go
View file @
3c9e9cf0
...
@@ -345,3 +345,28 @@ func (p *AnswerBeginTransaction) NEODecode(data []byte) (int, error) {
...
@@ -345,3 +345,28 @@ func (p *AnswerBeginTransaction) NEODecode(data []byte) (int, error) {
p
.
Tid
=
BigEndian
.
Uint64
(
data
[
0
:
])
p
.
Tid
=
BigEndian
.
Uint64
(
data
[
0
:
])
return
8
/* + TODO variable part */
,
nil
return
8
/* + TODO variable part */
,
nil
}
}
func
(
p
*
FinishTransaction
)
NEODecode
(
data
[]
byte
)
(
int
,
error
)
{
p
.
Tid
=
BigEndian
.
Uint64
(
data
[
0
:
])
{
l
:=
BigEndian
.
Uint32
(
data
[
8
:
])
data
=
data
[
12
:
]
p
.
OIDList
=
make
([]
neo
.
Oid
,
l
)
for
i
:=
0
;
i
<
l
;
i
++
{
a
:=
&
p
.
OIDList
[
i
]
a
=
BigEndian
.
Uint64
(
data
[
0
:
])
data
=
data
[
8
:
]
}
}
{
l
:=
BigEndian
.
Uint32
(
data
[
0
:
])
data
=
data
[
4
:
]
p
.
CheckedList
=
make
([]
neo
.
Oid
,
l
)
for
i
:=
0
;
i
<
l
;
i
++
{
a
:=
&
p
.
CheckedList
[
i
]
a
=
BigEndian
.
Uint64
(
data
[
0
:
])
data
=
data
[
8
:
]
}
}
return
0
/* + TODO variable part */
,
nil
}
t/neo/proto.go
View file @
3c9e9cf0
...
@@ -358,7 +358,6 @@ type AnswerBeginTransaction struct {
...
@@ -358,7 +358,6 @@ type AnswerBeginTransaction struct {
Tid
Tid
Tid
Tid
}
}
/*
// Finish a transaction. C -> PM.
// Finish a transaction. C -> PM.
// Answer when a transaction is finished. PM -> C.
// Answer when a transaction is finished. PM -> C.
type
FinishTransaction
struct
{
type
FinishTransaction
struct
{
...
@@ -367,6 +366,7 @@ type FinishTransaction struct {
...
@@ -367,6 +366,7 @@ type FinishTransaction struct {
CheckedList
[]
Oid
CheckedList
[]
Oid
}
}
/*
type AnswerFinishTransaction struct {
type AnswerFinishTransaction struct {
TTID Tid
TTID Tid
Tid Tid
Tid Tid
...
...
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