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
e4b6585f
Unverified
Commit
e4b6585f
authored
Feb 04, 2024
by
Danyal Prout
Committed by
GitHub
Feb 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force disable req/response sync on bootnode p2p (#9298)
parent
93ca50c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
entrypoint.go
op-bootnode/bootnode/entrypoint.go
+5
-1
No files found.
op-bootnode/bootnode/entrypoint.go
View file @
e4b6585f
...
@@ -37,7 +37,7 @@ func (g *gossipConfig) P2PSequencerAddress() common.Address {
...
@@ -37,7 +37,7 @@ func (g *gossipConfig) P2PSequencerAddress() common.Address {
type
l2Chain
struct
{}
type
l2Chain
struct
{}
func
(
l
*
l2Chain
)
PayloadByNumber
(
_
context
.
Context
,
_
uint64
)
(
*
eth
.
ExecutionPayloadEnvelope
,
error
)
{
func
(
l
*
l2Chain
)
PayloadByNumber
(
_
context
.
Context
,
_
uint64
)
(
*
eth
.
ExecutionPayloadEnvelope
,
error
)
{
return
nil
,
nil
return
nil
,
errors
.
New
(
"P2P req/resp is not supported in bootnodes"
)
}
}
func
Main
(
cliCtx
*
cli
.
Context
)
error
{
func
Main
(
cliCtx
*
cli
.
Context
)
error
{
...
@@ -60,6 +60,10 @@ func Main(cliCtx *cli.Context) error {
...
@@ -60,6 +60,10 @@ func Main(cliCtx *cli.Context) error {
if
err
!=
nil
{
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to load p2p config: %w"
,
err
)
return
fmt
.
Errorf
(
"failed to load p2p config: %w"
,
err
)
}
}
if
p2pConfig
.
EnableReqRespSync
{
logger
.
Warn
(
"req-resp sync is enabled, bootnode does not support this feature"
)
p2pConfig
.
EnableReqRespSync
=
false
}
p2pNode
,
err
:=
p2p
.
NewNodeP2P
(
ctx
,
config
,
logger
,
p2pConfig
,
&
gossipNoop
{},
&
l2Chain
{},
&
gossipConfig
{},
m
,
false
)
p2pNode
,
err
:=
p2p
.
NewNodeP2P
(
ctx
,
config
,
logger
,
p2pConfig
,
&
gossipNoop
{},
&
l2Chain
{},
&
gossipConfig
{},
m
,
false
)
if
err
!=
nil
||
p2pNode
==
nil
{
if
err
!=
nil
||
p2pNode
==
nil
{
...
...
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