Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

p2p/simulations: fix intermittent data races related to Node.Up field #1146

Closed
ethereum/go-ethereum
#18976
@acud

Description

@acud

We should introduce finer granularity locking on individual Nodes and introduce getters&setters to mitigate possible data races.

Node.Up is not properly encapsulated; sometimes it's accessed under the protection of Network.lock sometimes it's just read (e.g., TestStartStopNode) directly. => data race

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions