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
872370e3
Commit
872370e3
authored
6 years ago
by
Janoš Guljaš
Committed by
Viktor Trón
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swarm/network/simulation: do not copy node mutex in UploadSnapshot (#19160)
parent
81babe15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
node.go
swarm/network/simulation/node.go
+4
-4
No files found.
swarm/network/simulation/node.go
View file @
872370e3
...
...
@@ -222,11 +222,11 @@ func (s *Simulation) UploadSnapshot(snapshotFile string, opts ...AddNodeOption)
//the snapshot probably has the property EnableMsgEvents not set
//just in case, set it to true!
//(we need this to wait for messages before uploading)
for
_
,
n
:=
range
snap
.
Nodes
{
n
.
Node
.
Config
.
EnableMsgEvents
=
true
n
.
Node
.
Config
.
Services
=
s
.
serviceNames
for
i
:=
range
snap
.
Nodes
{
snap
.
Nodes
[
i
]
.
Node
.
Config
.
EnableMsgEvents
=
true
snap
.
Nodes
[
i
]
.
Node
.
Config
.
Services
=
s
.
serviceNames
for
_
,
o
:=
range
opts
{
o
(
n
.
Node
.
Config
)
o
(
snap
.
Nodes
[
i
]
.
Node
.
Config
)
}
}
...
...
This diff is collapsed.
Click to expand it.
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