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
74da3738
Commit
74da3738
authored
Apr 07, 2024
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! fixup! fixup! proto fix, see comment in protogen
parent
07de083a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
go/neo/proto/protogen.go
go/neo/proto/protogen.go
+0
-11
No files found.
go/neo/proto/protogen.go
View file @
74da3738
...
@@ -1745,17 +1745,6 @@ func (d *decoderM) genStructHead(path string, typ *types.Struct, userType types.
...
@@ -1745,17 +1745,6 @@ func (d *decoderM) genStructHead(path string, typ *types.Struct, userType types.
// Therefore it's better to use "ReadArrayHeaderBytes" than using
// Therefore it's better to use "ReadArrayHeaderBytes" than using
//
//
// >>> data = data[1:] // <- this fails in case we have array with 3 or 5 header bytes
// >>> data = data[1:] // <- this fails in case we have array with 3 or 5 header bytes
//
// But there is another case, where this fix fails now, see:
//
// W0406 14:26:25.116792 2317874 mastered.go:127] C?: talk master(127.0.0.1:32747): C?: talk M1: after identification: expect nodeTab: 127.0.0.1:52480 - 127.0.0.1:32747 .0: decode: decode: M: NotifyNodeInformation.Addr: msgp: attempted to decode type "ext" with method for "array"
//
// So here we seem to use "genStructHead", because we create code for Addr decoding.
// But it doesn't work as expected, because we don't have an array, but an extension
// type. This means:
//
// Addr isn't an Array/Struct but an extension type and this needs to be adjusted in proto.go?
// We need to differentiate in 'genStructHead' between them?
d
.
resetPos
()
// we need to reset, otherwise we may read the same data again, and wrong data types will result
d
.
resetPos
()
// we need to reset, otherwise we may read the same data again, and wrong data types will result
...
...
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