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
acc7c0f7
Commit
acc7c0f7
authored
Feb 13, 2015
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #308 from fjl/default-bootnodes
eth: add default bootnode
parents
384305f4
1c1a3033
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
backend.go
eth/backend.go
+11
-2
No files found.
eth/backend.go
View file @
acc7c0f7
...
@@ -19,8 +19,14 @@ import (
...
@@ -19,8 +19,14 @@ import (
"github.com/ethereum/go-ethereum/whisper"
"github.com/ethereum/go-ethereum/whisper"
)
)
var
logger
=
ethlogger
.
NewLogger
(
"SERV"
)
var
(
var
jsonlogger
=
ethlogger
.
NewJsonLogger
()
logger
=
ethlogger
.
NewLogger
(
"SERV"
)
jsonlogger
=
ethlogger
.
NewJsonLogger
()
defaultBootNodes
=
[]
*
discover
.
Node
{
discover
.
MustParseNode
(
"enode://6cdd090303f394a1cac34ecc9f7cda18127eafa2a3a06de39f6d920b0e583e062a7362097c7c65ee490a758b442acd5c80c6fce4b148c6a391e946b45131365b@54.169.166.226:30303"
),
}
)
type
Config
struct
{
type
Config
struct
{
Name
string
Name
string
...
@@ -50,6 +56,9 @@ type Config struct {
...
@@ -50,6 +56,9 @@ type Config struct {
}
}
func
(
cfg
*
Config
)
parseBootNodes
()
[]
*
discover
.
Node
{
func
(
cfg
*
Config
)
parseBootNodes
()
[]
*
discover
.
Node
{
if
cfg
.
BootNodes
==
""
{
return
defaultBootNodes
}
var
ns
[]
*
discover
.
Node
var
ns
[]
*
discover
.
Node
for
_
,
url
:=
range
strings
.
Split
(
cfg
.
BootNodes
,
" "
)
{
for
_
,
url
:=
range
strings
.
Split
(
cfg
.
BootNodes
,
" "
)
{
if
url
==
""
{
if
url
==
""
{
...
...
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