go-ethereum/swarm/network/simulation
Ferenc Szabo 13292ee897 p2p/simulations: encapsulate Node.Up field so we avoid data races
The Node.Up field was accessed concurrently without "proper" locking.
There was a lock on Network and that was used sometimes to access
the  field. Other times the locking was missed and we had
a data race.

For example: https://github.com/ethereum/go-ethereum/pull/18464
The case above was solved, but there were still intermittent/hard to
reproduce races. So let's solve the issue permanently.

resolves: ethersphere/go-ethereum#1146
2019-01-30 16:01:42 +01:00
..
bucket.go A few minor code inspection fixes (#18393) 2019-01-06 11:58:57 +01:00
bucket_test.go A few minor code inspection fixes (#18393) 2019-01-06 11:58:57 +01:00
events.go swarm/network/simulation: use simulations.Event instead p2p.PeerEvent (#18098) 2018-11-15 21:06:27 +01:00
events_test.go swarm: Fix T.Fatal inside a goroutine in tests (#18409) 2019-01-09 07:05:55 +01:00
example_test.go swarm/network: Rename minproxbinsize, add as member of simulation (#18408) 2019-01-10 12:33:51 +01:00
http.go Merge netsim mig to master (#17241) 2018-07-30 22:55:25 +02:00
http_test.go swarm: Fix T.Fatal inside a goroutine in tests (#18409) 2019-01-09 07:05:55 +01:00
kademlia.go swarm/network: Rename minproxbinsize, add as member of simulation (#18408) 2019-01-10 12:33:51 +01:00
kademlia_test.go swarm/network: unskip tests previously skipped due to suggestPeer issues (#18477) 2019-01-19 08:12:57 +01:00
node.go p2p/simulations: encapsulate Node.Up field so we avoid data races 2019-01-30 16:01:42 +01:00
node_test.go p2p/simulations: encapsulate Node.Up field so we avoid data races 2019-01-30 16:01:42 +01:00
service.go p2p/simulations: encapsulate Node.Up field so we avoid data races 2019-01-30 16:01:42 +01:00
service_test.go swarm: network simulation for swarm tests (#769) 2018-07-23 15:33:25 +02:00
simulation.go p2p/simulations: eliminate concept of pivot (#18426) 2019-01-11 10:23:45 +01:00
simulation_test.go p2p/simulations: encapsulate Node.Up field so we avoid data races 2019-01-30 16:01:42 +01:00