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
cdadf57b
Commit
cdadf57b
authored
Jun 21, 2019
by
lash
Committed by
Anton Evangelatov
Jun 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p2p/simulations: Enable access to MsgEvents with execadapter (#19749)
parent
60c062e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
exec.go
p2p/simulations/adapters/exec.go
+4
-1
No files found.
p2p/simulations/adapters/exec.go
View file @
cdadf57b
...
...
@@ -96,6 +96,7 @@ func (e *ExecAdapter) NewNode(config *NodeConfig) (Node, error) {
if
err
!=
nil
{
return
nil
,
err
}
// generate the config
conf
:=
&
execNodeConfig
{
Stack
:
node
.
DefaultConfig
,
...
...
@@ -106,11 +107,13 @@ func (e *ExecAdapter) NewNode(config *NodeConfig) (Node, error) {
}
else
{
conf
.
Stack
.
DataDir
=
filepath
.
Join
(
dir
,
"data"
)
}
// these parameters are crucial for execadapter node to run correctly
conf
.
Stack
.
WSHost
=
"127.0.0.1"
conf
.
Stack
.
WSPort
=
0
conf
.
Stack
.
WSOrigins
=
[]
string
{
"*"
}
conf
.
Stack
.
WSExposeAll
=
true
conf
.
Stack
.
P2P
.
EnableMsgEvents
=
false
conf
.
Stack
.
P2P
.
EnableMsgEvents
=
config
.
EnableMsgEvents
conf
.
Stack
.
P2P
.
NoDiscovery
=
true
conf
.
Stack
.
P2P
.
NAT
=
nil
conf
.
Stack
.
NoUSB
=
true
...
...
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