Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
8c09602a
Commit
8c09602a
authored
Jan 31, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Self connect
parent
da66eddf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
ethereum.go
ethereum.go
+0
-9
peer.go
peer.go
+0
-1
No files found.
ethereum.go
View file @
8c09602a
...
...
@@ -187,15 +187,6 @@ func (s *Ethereum) Start() {
// This is mainly for testing to create a "network"
if
ethutil
.
Config
.
Debug
{
log
.
Println
(
"Connection listening disabled. Acting as client"
)
/*
err = s.ConnectToPeer("localhost:12345")
if err != nil {
log.Println("Error starting ethereum", err)
s.Stop()
}
*/
}
else
{
log
.
Fatal
(
err
)
}
...
...
peer.go
View file @
8c09602a
...
...
@@ -282,7 +282,6 @@ func (p *Peer) Start(seed bool) {
peerHost
,
_
,
_
:=
net
.
SplitHostPort
(
p
.
conn
.
LocalAddr
()
.
String
())
servHost
,
_
,
_
:=
net
.
SplitHostPort
(
p
.
conn
.
RemoteAddr
()
.
String
())
log
.
Println
(
peerHost
,
servHost
)
if
peerHost
==
servHost
{
log
.
Println
(
"Connected to self"
)
...
...
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