go-ethereum/p2p
Ferenc Szabo f82185a4a1 p2p/protocols: fix data race in TestProtocolHook (#19242)
dummyHook's fields were concurrently written by nodes and read by
the test. The simplest solution is to protect all fields with a mutex.

Enable: TestMultiplePeersDropSelf, TestMultiplePeersDropOther as they
seemingly accidentally stayed disabled during a refactor/rewrite
since 1836366ac19e30f157570e61342fae53bc6c8a57.

resolves ethersphere/go-ethereum#1286
2019-03-08 17:30:16 +01:00
..
discover p2p/enode: use localItemKey for local sequence number (#19131) 2019-02-28 13:14:45 +02:00
discv5 vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
enode p2p/enode: use localItemKey for local sequence number 2019-02-19 13:29:41 +01:00
enr p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
nat p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
netutil p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
protocols p2p/protocols: fix data race in TestProtocolHook (#19242) 2019-03-08 17:30:16 +01:00
simulations Enable longrunning tests to run (#19208) 2019-03-05 12:54:46 +01:00
testing p2p/protocols: fix data race in TestProtocolHook (#19242) 2019-03-08 17:30:16 +01:00
dial_test.go p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
dial.go p2p: meter peer traffic, emit metered peer events (#17695) 2018-10-16 00:40:51 +02:00
message_test.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
message.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
metrics.go metrics, p2p: add ephemeral registry (#18067) 2018-11-09 10:20:51 +01:00
peer_error.go p2p: fix some golint warnings (#16577) 2018-05-08 13:08:43 +02:00
peer_test.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
peer.go p2p: add enode URL to PeerInfo (#17838) 2018-10-04 18:13:21 +03:00
protocol.go p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
rlpx_test.go vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
rlpx.go vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
server_test.go vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
server.go p2p: use errors.New instead of fmt.Errorf (#18193) 2018-11-30 22:38:37 +01:00