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
ddadb8b1
Commit
ddadb8b1
authored
Feb 22, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e92f891a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
go/neo/xneo/connect.go
go/neo/xneo/connect.go
+4
-4
go/neo/xneo/nodetab.go
go/neo/xneo/nodetab.go
+1
-1
No files found.
go/neo/xneo/connect.go
View file @
ddadb8b1
...
...
@@ -109,8 +109,8 @@ func (l *listener) Addr() net.Addr { return l.l.Addr() }
// - established link
// - accept identification reply
//
// Dial does not update
.
NodeTab or its node entries in any way.
// For establishing links to peers present in
.NodeTab use
Node.Dial.
// Dial does not update NodeTab or its node entries in any way.
// For establishing links to peers present in
NodeTab use Peer
Node.Dial.
func
Dial
(
ctx
context
.
Context
,
typ
proto
.
NodeType
,
net
xnet
.
Networker
,
addr
string
,
reqID
*
proto
.
RequestIdentification
)
(
_
*
neonet
.
NodeLink
,
_
*
proto
.
AcceptIdentification
,
err
error
)
{
defer
task
.
Runningf
(
&
ctx
,
"dial %s (%s)"
,
addr
,
typ
)(
&
err
)
...
...
@@ -141,8 +141,8 @@ func Dial(ctx context.Context, typ proto.NodeType, net xnet.Networker, addr stri
}
if
accept
.
NodeType
!=
typ
{
//
XXX
send Error to peer?
return
fmt
.
Errorf
(
"accepted, but peer is not %
v (identifies as %v
)"
,
typ
,
accept
.
NodeType
)
//
TODO
send Error to peer?
return
fmt
.
Errorf
(
"accepted, but peer is not %
s (identifies as %s
)"
,
typ
,
accept
.
NodeType
)
}
return
nil
...
...
go/neo/xneo/nodetab.go
View file @
ddadb8b1
...
...
@@ -284,7 +284,7 @@ type dialed struct {
ready
chan
struct
{}
}
// Dial establishes link to peer node.
// Dial establishes link to
the
peer node.
//
// If the link was not yet established Dial dials the peer appropriately,
// handshakes, requests identification and checks that identification reply is
...
...
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