Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
exchain
nebula
Commits
74d4d1ce
Unverified
Commit
74d4d1ce
authored
Jan 07, 2023
by
mergify[bot]
Committed by
GitHub
Jan 07, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4621 from ethereum-optimism/feat/hardcode-bootnodes
op-node: Add default boot nodes
parents
aa1e1b71
1fab1c93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
config.go
op-node/p2p/config.go
+7
-0
No files found.
op-node/p2p/config.go
View file @
74d4d1ce
...
@@ -38,6 +38,12 @@ import (
...
@@ -38,6 +38,12 @@ import (
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup"
)
)
var
DefaultBootnodes
=
[]
*
enode
.
Node
{
enode
.
MustParse
(
"enode://869d07b5932f17e8490990f75a3f94195e9504ddb6b85f7189e5a9c0a8fff8b00aecf6f3ac450ecba6cdabdb5858788a94bde2b613e0f2d82e9b395355f76d1a@34.65.67.101:0?discport=30305"
),
enode
.
MustParse
(
"enode://2d4e7e9d48f4dd4efe9342706dd1b0024681bd4c3300d021f86fc75eab7865d4e0cbec6fbc883f011cfd6a57423e7e2f6e104baad2b744c3cafaec6bc7dc92c1@34.65.43.171:0?discport=30305"
),
enode
.
MustParse
(
"enode://9d7a3efefe442351217e73b3a593bcb8efffb55b4807699972145324eab5e6b382152f8d24f6301baebbfb5ecd4127bd3faab2842c04cd432bdf50ba092f6645@34.65.109.126:0?discport=30305"
),
}
// SetupP2P provides a host and discovery service for usage in the rollup node.
// SetupP2P provides a host and discovery service for usage in the rollup node.
type
SetupP2P
interface
{
type
SetupP2P
interface
{
Check
()
error
Check
()
error
...
@@ -242,6 +248,7 @@ func (conf *Config) loadDiscoveryOpts(ctx *cli.Context) error {
...
@@ -242,6 +248,7 @@ func (conf *Config) loadDiscoveryOpts(ctx *cli.Context) error {
return
fmt
.
Errorf
(
"failed to open discovery db: %w"
,
err
)
return
fmt
.
Errorf
(
"failed to open discovery db: %w"
,
err
)
}
}
conf
.
Bootnodes
=
DefaultBootnodes
records
:=
strings
.
Split
(
ctx
.
GlobalString
(
flags
.
Bootnodes
.
Name
),
","
)
records
:=
strings
.
Split
(
ctx
.
GlobalString
(
flags
.
Bootnodes
.
Name
),
","
)
for
i
,
recordB64
:=
range
records
{
for
i
,
recordB64
:=
range
records
{
recordB64
=
strings
.
TrimSpace
(
recordB64
)
recordB64
=
strings
.
TrimSpace
(
recordB64
)
...
...
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